From d9cef8058942d8a8b3973737c65d6a9b811d06f6 Mon Sep 17 00:00:00 2001 From: ahocevar Date: Tue, 4 Mar 2008 10:19:24 +0000 Subject: [PATCH] typo in ZoomBox. Thanks avlee for spotting this and the patch. r=me (closes #1413) git-svn-id: http://svn.openlayers.org/trunk/openlayers@6432 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Control/ZoomBox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/OpenLayers/Control/ZoomBox.js b/lib/OpenLayers/Control/ZoomBox.js index 202f474fd6..c83ed80b3b 100644 --- a/lib/OpenLayers/Control/ZoomBox.js +++ b/lib/OpenLayers/Control/ZoomBox.js @@ -54,7 +54,7 @@ OpenLayers.Control.ZoomBox = OpenLayers.Class(OpenLayers.Control, { var pixHeight = Math.abs(position.top-position.bottom); var zoomFactor = Math.min((this.map.size.h / pixHeight), (this.map.size.w / pixWidth)); - var extent = map.getExtent(); + var extent = this.map.getExtent(); var center = this.map.getLonLatFromPixel( position.getCenterPixel()); var xmin = center.lon - (extent.getWidth()/2)*zoomFactor;