diff --git a/debug/map/map-mobile.html b/debug/map/map-mobile.html index 7f7c3fc71cd..9d9db62682c 100644 --- a/debug/map/map-mobile.html +++ b/debug/map/map-mobile.html @@ -20,10 +20,9 @@ var cloudmadeUrl = 'http://{s}.tile.cloudmade.com/BC9A493B41014CAABB98F0471D759707/997/256/{z}/{x}/{y}.png', cloudmadeAttribution = 'Map data © 2011 OpenStreetMap contributors, Imagery © 2011 CloudMade', - cloudmade = new L.TileLayer(cloudmadeUrl, {maxZoom: 18, attribution: cloudmadeAttribution}), - latlng = new L.LatLng(50.5, 30.51); + cloudmade = new L.TileLayer(cloudmadeUrl, {maxZoom: 18, attribution: cloudmadeAttribution}); - var map = new L.Map('map').addLayer(cloudmade).setView(latlng, 15); + var map = new L.Map('map').addLayer(cloudmade).setView(new L.LatLng(50.5, 30.51), 15); map.on('locationfound', function(e) { var marker = new L.Marker(e.latlng); @@ -32,7 +31,7 @@ marker.bindPopup("
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.
Donec nec justo eget felis facilisis fermentum. Aliquam porttitor mauris sit amet orci. Aenean dignissim pellentesque felis.
"); }); - map.locate(); + map.locateAndSetView();