From daf6c22a1d949ad3ea57fdb2d945fb2b7b6545b1 Mon Sep 17 00:00:00 2001 From: Mourner Date: Thu, 19 May 2011 17:23:38 +0300 Subject: [PATCH] set world view on locateAndSetView failure --- CHANGELOG.md | 2 +- dist/leaflet.js | 5 +++-- src/map/ext/Map.Geolocation.js | 5 +++++ 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3b5d07dd..fa9df5e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,7 @@ Leaflet Changelog * `L.Circle` is now zoom-dependent (with radius in meters); circle of a permanent size is now called `L.CircleMarker`. [#44](https://github.com/CloudMade/Leaflet/issues/44) * Disabled zoom animation on Android by default because it's buggy on some devices (will be enabled back when it's stable enough). [#32](https://github.com/CloudMade/Leaflet/issues/32) * Added `maxZoom` argument to `map.locateAndSetView` method. - * Improved geolocation error handling, explicit timeout. [#61](https://github.com/CloudMade/Leaflet/issues/61) + * Improved geolocation error handling: better error messages, explicit timeout, set world view on locateAndSetView failure. [#61](https://github.com/CloudMade/Leaflet/issues/61) * Fixed a bug where zooming is broken if the map contains a polygon and you zoom to an area where it's not visible. [#47](https://github.com/CloudMade/Leaflet/issues/47) * Fixed a bug where closed polylines would not appear on the map. * Fixed a bug where map isn't displayed in Firefox when there's an `img { max-width: 100% }` rule. diff --git a/dist/leaflet.js b/dist/leaflet.js index 22b6cd2c..441ada12 100644 --- a/dist/leaflet.js +++ b/dist/leaflet.js @@ -87,8 +87,9 @@ a,b||this._objectsPane)},_resetView:function(a,b,c){var d=this._zoom!=b;this.fir {};for(var b=0,c=a.length;b