From 9d3aea6a2f4acf1beaa974b9e7674f987613cc5f Mon Sep 17 00:00:00 2001 From: euzuro Date: Thu, 17 Aug 2006 16:21:51 +0000 Subject: [PATCH] getResolution() is only to be called on a baselayer, so no need to ask the map to getExtent() -- we just ask ourselves git-svn-id: http://svn.openlayers.org/branches/openlayers/2.0@1281 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Layer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/OpenLayers/Layer.js b/lib/OpenLayers/Layer.js index 79388df452..9816053725 100644 --- a/lib/OpenLayers/Layer.js +++ b/lib/OpenLayers/Layer.js @@ -278,7 +278,7 @@ OpenLayers.Layer.prototype = { */ getResolution: function() { var viewSize = this.map.getSize(); - var extent = this.map.getExtent(); + var extent = this.getExtent(); return Math.max( extent.getWidth() / viewSize.w, extent.getHeight() / viewSize.h ); },