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>
19 <script type=
"text/javascript">
21 var cloudmadeUrl
= 'http://{s}.tile.cloudmade.com/BC9A493B41014CAABB98F0471D759707/997/256/{z}/{x}/{y}.png',
22 cloudmadeAttribution
= 'Map data © 2011 OpenStreetMap contributors, Imagery © 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
);
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>");
34 map
.on('locationerror', function(e
) {
39 map
.locateAndSetView();