From c6850a2b6a111ed0948645c6658a31c84447fc97 Mon Sep 17 00:00:00 2001 From: Paul Spencer Date: Thu, 23 Aug 2007 14:09:57 +0000 Subject: [PATCH] Closes #914: change Map initialization to object rather than id to avoid a bug when launching from a permalink. git-svn-id: http://svn.openlayers.org/trunk/openlayers@3992 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Control/OverviewMap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/OpenLayers/Control/OverviewMap.js b/lib/OpenLayers/Control/OverviewMap.js index 7f60674e9a..d9b01618c8 100644 --- a/lib/OpenLayers/Control/OverviewMap.js +++ b/lib/OpenLayers/Control/OverviewMap.js @@ -507,7 +507,7 @@ OpenLayers.Control.OverviewMap = OpenLayers.Class(OpenLayers.Control, { // create the overview map var options = OpenLayers.Util.extend( {controls: [], maxResolution: 'auto'}, this.mapOptions); - this.ovmap = new OpenLayers.Map(this.mapDiv.id, options); + this.ovmap = new OpenLayers.Map(this.mapDiv, options); this.ovmap.addLayers(this.layers); this.ovmap.zoomToMaxExtent(); // check extent rectangle border width