From a90c976375940cf87fdf1f47d14fb0a48dd3d6f0 Mon Sep 17 00:00:00 2001 From: euzuro Date: Thu, 17 Aug 2006 16:15:45 +0000 Subject: [PATCH] always get the resolution from the map -- this grid might not be the base layer git-svn-id: http://svn.openlayers.org/branches/openlayers/2.0@1280 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Layer/Grid.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/OpenLayers/Layer/Grid.js b/lib/OpenLayers/Layer/Grid.js index 46edf0b99d..e621138776 100644 --- a/lib/OpenLayers/Layer/Grid.js +++ b/lib/OpenLayers/Layer/Grid.js @@ -338,7 +338,7 @@ OpenLayers.Layer.Grid.prototype = var center = this.map.getCenter(); if (center != null) { - var res = this.getResolution(); + var res = this.map.getResolution(); var size = this.map.getSize(); var w_deg = size.w * res; var h_deg = size.h * res;