From 4ad6bacc5d1507aa379e11e534491acdf5186731 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Thu, 10 May 2012 15:42:59 +0200 Subject: [PATCH] when calculating maxResolution from maxExtent and tileSize we dont want to the actual tile size for single layers --- 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 73ce4e8024..d152400977 100644 --- a/lib/OpenLayers/Layer.js +++ b/lib/OpenLayers/Layer.js @@ -1010,7 +1010,7 @@ OpenLayers.Layer = OpenLayers.Class({ this.maxExtent != null) { // maxResolution for default grid sets assumes that at zoom // level zero, the whole world fits on one tile. - var tileSize = this.tileSize || this.map.getTileSize(); + var tileSize = this.map.getTileSize(); maxResolution = Math.max( this.maxExtent.getWidth() / tileSize.w, this.maxExtent.getHeight() / tileSize.h