From 70a7b7c478de49f20519bddc79ef990f89acaf09 Mon Sep 17 00:00:00 2001 From: mourner Date: Tue, 21 Sep 2010 11:50:02 +0300 Subject: [PATCH] OR fixes --- src/map/Map.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/map/Map.js b/src/map/Map.js index 4eab9e57..66c10823 100644 --- a/src/map/Map.js +++ b/src/map/Map.js @@ -21,7 +21,7 @@ L.Map = L.Class.extend({ touchZoom: true, //misc - viewLoadOnDragEnd: false || L.Browser.mobileWebkit + viewLoadOnDragEnd: L.Browser.mobileWebkit }, @@ -126,11 +126,11 @@ L.Map = L.Class.extend({ }, getMinZoom: function() { - return this.options.minZoom || this._layersMinZoom || 0; + return isNaN(this.options.minZoom) ? this._layersMinZoom || 0 : this.options.minZoom; }, getMaxZoom: function() { - return this.options.maxZoom || this._layersMaxZoom || Infinity; + return isNaN(this.options.maxZoom) ? this._layersMaxZoom || Infinity : this.options.maxZoom; }, getBoundsZoom: function(/*LatLngBounds*/ bounds) {