Script and makefile adjustments for updating extlib
[larjonas-mediagoblin.git] / extlib / leaflet / debug / map / map-mobile.html
blob27d12ed9462dcdeba192b1227bef0da871861e99
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>Leaflet debug page</title>
6 <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
8 <link rel="stylesheet" href="../../dist/leaflet.css" />
9 <!--[if lte IE 8]><link rel="stylesheet" href="../../dist/leaflet.ie.css" /><![endif]-->
11 <link rel="stylesheet" href="../css/mobile.css" />
13 <script src="../leaflet-include.js"></script>
14 </head>
15 <body>
17 <div id="map"></div>
19 <script type="text/javascript">
21 var cloudmadeUrl = 'http://{s}.tile.cloudmade.com/BC9A493B41014CAABB98F0471D759707/997/256/{z}/{x}/{y}.png',
22 cloudmadeAttribution = 'Map data &copy; 2011 OpenStreetMap contributors, Imagery &copy; 2011 CloudMade',
23 cloudmade = new L.TileLayer(cloudmadeUrl, {maxZoom: 18, attribution: cloudmadeAttribution});
25 var map = new L.Map('map').addLayer(cloudmade);
27 map.on('locationfound', function(e) {
28 var marker = new L.Marker(e.latlng);
29 map.addLayer(marker);
31 marker.bindPopup("<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p><p>Donec nec justo eget felis facilisis fermentum. Aliquam porttitor mauris sit amet orci. Aenean dignissim pellentesque felis.</p>");
32 });
34 map.on('locationerror', function(e) {
35 alert(e.message);
36 map.fitWorld();
37 });
39 map.locateAndSetView();
40 </script>
41 </body>
42 </html>