From de427d30f5965edefa6c9c263408db76e5dc5a2c Mon Sep 17 00:00:00 2001 From: crschmidt Date: Fri, 7 Dec 2007 14:50:15 +0000 Subject: [PATCH] Fix missing units param in call to getResolutionFromScale . This should have been fixed a while ago, but we were waiting on a test: Now that it's been reported by four different users, I'm just going to go ahead and fix it, grudgingly, rather than wait longer on a test. (Closes #958, #1117) git-svn-id: http://svn.openlayers.org/trunk/openlayers@5357 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Layer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/OpenLayers/Layer.js b/lib/OpenLayers/Layer.js index d796bc06fa..ac6209fb98 100644 --- a/lib/OpenLayers/Layer.js +++ b/lib/OpenLayers/Layer.js @@ -647,7 +647,8 @@ OpenLayers.Layer = OpenLayers.Class({ // determine minResolution if (confProps.maxScale != null) { confProps.minResolution = - OpenLayers.Util.getResolutionFromScale(confProps.maxScale); + OpenLayers.Util.getResolutionFromScale(confProps.maxScale, + confProps.units); } else if ( (confProps.minResolution == "auto") && (confProps.minExtent != null) ) { var viewSize = this.map.getSize();