From 08981babaa77f2d0847a3a5f482a7f4ee3ece981 Mon Sep 17 00:00:00 2001 From: euzuro Date: Thu, 17 Aug 2006 16:13:55 +0000 Subject: [PATCH] use official map.getResolution() function here, do not bypass and go directly to baseLayer git-svn-id: http://svn.openlayers.org/branches/openlayers/2.0@1279 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 349dba9879..52a2ab4e3a 100644 --- a/lib/OpenLayers/Map.js +++ b/lib/OpenLayers/Map.js @@ -817,7 +817,7 @@ OpenLayers.Map.prototype = { var scale = null; if (this.baseLayer != null) { - var res = this.baseLayer.getResolution(); + var res = this.getResolution(); var units = this.baseLayer.units; scale = res * OpenLayers.INCHES_PER_UNIT[units] * OpenLayers.DOTS_PER_INCH;