From 9e8c2f380262561e4d477a991aa959ab538dc6ab Mon Sep 17 00:00:00 2001 From: Schuyler Erle Date: Mon, 19 Jun 2006 21:09:31 +0000 Subject: [PATCH] Augment r618 by allowing the more prosaic and self-documenting { maxResolution: 'auto' }. git-svn-id: http://svn.openlayers.org/trunk/openlayers@619 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 93d412da18..f1464aa384 100644 --- a/lib/OpenLayers/Map.js +++ b/lib/OpenLayers/Map.js @@ -89,7 +89,7 @@ OpenLayers.Map.prototype = { this.updateSize(); // make the entire maxExtent fix in zoom level 0 by default - if (this.maxResolution == null) { + if (this.maxResolution == null || this.resolution == "auto") { this.maxResolution = Math.max( this.maxExtent.getWidth() / this.size.w, this.maxExtent.getHeight() / this.size.h );