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
This commit is contained in:
Paul Spencer
2007-08-23 14:09:57 +00:00
parent 799b7a2df3
commit c6850a2b6a

View File

@@ -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