[Pkg-osm-commits] [SCM] leaflet branch, master, updated. debian/0.6.3-1-6-g35c6e63
Vladimir Agafonkin
agafonkin at gmail.com
Fri Aug 2 15:25:43 UTC 2013
The following commit has been merged in the master branch:
commit b73ed6afb8426dd70e44c065a09d36a8d90533b7
Author: Vladimir Agafonkin <agafonkin at gmail.com>
Date: Thu Jul 25 12:42:09 2013 +0300
fix infinite loop in getBounds and setMaxBounds, close #1895, close #1866
diff --git a/src/map/Map.js b/src/map/Map.js
index 0df345c..62f16ef 100644
--- a/src/map/Map.js
+++ b/src/map/Map.js
@@ -345,8 +345,8 @@ L.Map = L.Class.extend({
},
getMinZoom: function () {
- var z1 = this._layersMinZoom === undefined ? -Infinity : this._layersMinZoom,
- z2 = this._boundsMinZoom === undefined ? -Infinity : this._boundsMinZoom;
+ var z1 = this._layersMinZoom === undefined ? 0 : this._layersMinZoom,
+ z2 = this._boundsMinZoom === undefined ? 0 : this._boundsMinZoom;
return this.options.minZoom === undefined ? Math.max(z1, z2) : this.options.minZoom;
},
--
JavaScript library for displaying map data in web browsers
More information about the Pkg-osm-commits
mailing list