Hi,
Using the Web Edition 4.5 I'm getting some very frustrating intermittent errors in IE7 when changeing between screens that have a map loaded.
this.mapDiv.removeChild(this.extentRectangle) error in the destroy method of the map.
In order to track the cause of this issue down I plan to put the destroy code in the mapcreating function but the error does not seem to run into this code. Can you have a quick look. its probably an issue with the OpenLayers.Map.prototype.destroy = function () { line
function OnMapCreating(map) {
OpenLayers.Map.prototype.destroy = function () {
if (this.mapDiv) {
this.handlers.click && this.handlers.click.destroy();
this.handlers.drag && this.handlers.drag.destroy();
this.mapDiv.removeChild(this.extentRectangle);
this.extentRectangle = null;
if (this.rectEvents) {
this.rectEvents.destroy();
this.rectEvents = null
}
if (this.ovmap) {
this.ovmap.destroy();
this.ovmap = null
}
this.element.removeChild(this.mapDiv);
this.mapDiv = null;
this.div.removeChild(this.element);
this.element = null;
if (this.maximizeDiv) {
OpenLayers.Event.stopObservingElement(this.maximizeDiv);
this.div.removeChild(this.maximizeDiv);
this.maximizeDiv = null
}
if (this.minimizeDiv) {
OpenLayers.Event.stopObservingElement(this.minimizeDiv);
this.div.removeChild(this.minimizeDiv);
this.minimizeDiv = null
}
this.map.events.un({
moveend: this.update,
changebaselayer: this.baseLayerDraw,
scope: this
});
OpenLayers.Control.prototype.destroy.apply(this, arguments)
}
}
Liam