From 2355f099bec5d0fed5b76cd3aafd24cd893455e7 Mon Sep 17 00:00:00 2001 From: fredj Date: Thu, 12 Jan 2012 13:32:09 +0100 Subject: [PATCH] remove map.getSize call to avoid creating new instances --- 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 e7910548a9..32b04aca48 100644 --- a/lib/OpenLayers/Map.js +++ b/lib/OpenLayers/Map.js @@ -1713,7 +1713,7 @@ OpenLayers.Map = OpenLayers.Class({ */ adjustZoom: function(zoom) { var resolution, resolutions = this.baseLayer.resolutions, - maxResolution = this.getMaxExtent().getWidth() / this.getSize().w; + maxResolution = this.getMaxExtent().getWidth() / this.size.w; if (this.getResolutionForZoom(zoom) > maxResolution) { for (var i=zoom|0, ii=resolutions.length; i