From 843abf10bb181ded85e8e0022beb796fa8e6c604 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Wed, 28 Jun 2006 00:07:00 +0000 Subject: [PATCH] Let's keep null around. At least one example (*cough* openlayers homepage *cough*) uses it, although that should obviously have been documented in a test. git-svn-id: http://svn.openlayers.org/trunk/openlayers@814 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/OpenLayers/Map.js b/lib/OpenLayers/Map.js index fd2884ca4f..59bbfffd1e 100644 --- a/lib/OpenLayers/Map.js +++ b/lib/OpenLayers/Map.js @@ -195,7 +195,7 @@ OpenLayers.Map.prototype = { // if maxResolution is specified as "auto", calculate it // based on the maxExtent and the viewSize // - if (this.maxResolution == "auto") { + if (this.maxResolution == "auto" || this.maxResolution == null) { var maxExtent = this.getMaxExtent(); var viewSize = this.getSize(); this.maxResolution = Math.max(maxExtent.getWidth() / viewSize.w,