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
This commit is contained in:
euzuro
2006-08-17 16:15:45 +00:00
parent 08981babaa
commit a90c976375

View File

@@ -338,7 +338,7 @@ OpenLayers.Layer.Grid.prototype =
var center = this.map.getCenter(); var center = this.map.getCenter();
if (center != null) { if (center != null) {
var res = this.getResolution(); var res = this.map.getResolution();
var size = this.map.getSize(); var size = this.map.getSize();
var w_deg = size.w * res; var w_deg = size.w * res;
var h_deg = size.h * res; var h_deg = size.h * res;