Leaflet - Quickstart
Aus Wikizone
Version vom 16. Oktober 2012, 17:20 Uhr von 134.3.241.116 (Diskussion)
Grundstruktur
Leaflet CSS und JS Files einbinden und ein Map Element einbauen. Wichtig: Höhenangabe über CSS.
<html>
<head>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.4/leaflet.css" />
<!--[if lte IE 8]>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.4/leaflet.ie.css" />
<![endif]-->
<script src="http://cdn.leafletjs.com/leaflet-0.4/leaflet.js"></script>
</head>
<body>
<div id="map" style="height:180px;"></div>
</body>
</html>