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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user