diff --git a/CHANGELOG.md b/CHANGELOG.md index 9693f9a0..29ea6024 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -49,6 +49,8 @@ An in-progress version being developed on the master branch. ### Bug fixes + * Fixed a bug with false map click events on pinch-zoom and zoom/layers controls click. [#485](https://github.com/CloudMade/Leaflet/issues/485) + * Fixed a bug where touching the map with two or more fingers simultaneously would raise an error. * Fixed inability to use scrolled content inside popup due to mouse wheel propagation. * Fixed a bug where popup close button wouldn't work on manually added popups. [#423](https://github.com/CloudMade/Leaflet/issues/423) * Fixed a bug where popup size was calculated incorrectly in IE. diff --git a/debug/map/map-mobile.html b/debug/map/map-mobile.html index 1600ccf5..df516ec2 100644 --- a/debug/map/map-mobile.html +++ b/debug/map/map-mobile.html @@ -20,23 +20,15 @@ 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}); + cloudmade = new L.TileLayer(cloudmadeUrl, {maxZoom: 18, attribution: cloudmadeAttribution}), + latlng = new L.LatLng(50.5, 30.51); - var map = new L.Map('map').addLayer(cloudmade); + var map = new L.Map('map', {center: latlng, zoom: 15, layers: [cloudmade]}); - map.on('locationfound', function(e) { - var marker = new L.Marker(e.latlng); - map.addLayer(marker); + var marker = new L.Marker(latlng); + map.addLayer(marker); - 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.on('locationerror', function(e) { - alert(e.message); - map.fitWorld(); - }); - - map.locateAndSetView(); + 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.
");