The following commit has been merged in the master branch:
commit b73ed6afb8426dd70e44c065a09d36a8d90533b7
Author: Vladimir Agafonkin <agafon...@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

_______________________________________________
Pkg-osm-commits mailing list
Pkg-osm-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-osm-commits

Reply via email to