This commit is contained in:
mourner 2010-09-21 11:50:02 +03:00
parent 2b8d9eed1d
commit 70a7b7c478

View File

@ -21,7 +21,7 @@ L.Map = L.Class.extend({
touchZoom: true, touchZoom: true,
//misc //misc
viewLoadOnDragEnd: false || L.Browser.mobileWebkit viewLoadOnDragEnd: L.Browser.mobileWebkit
}, },
@ -126,11 +126,11 @@ L.Map = L.Class.extend({
}, },
getMinZoom: function() { getMinZoom: function() {
return this.options.minZoom || this._layersMinZoom || 0; return isNaN(this.options.minZoom) ? this._layersMinZoom || 0 : this.options.minZoom;
}, },
getMaxZoom: function() { getMaxZoom: function() {
return this.options.maxZoom || this._layersMaxZoom || Infinity; return isNaN(this.options.maxZoom) ? this._layersMaxZoom || Infinity : this.options.maxZoom;
}, },
getBoundsZoom: function(/*LatLngBounds*/ bounds) { getBoundsZoom: function(/*LatLngBounds*/ bounds) {