diff --git a/lib/OpenLayers/Control/MouseDefaults.js b/lib/OpenLayers/Control/MouseDefaults.js index aa3193d933..4c66b2abb1 100644 --- a/lib/OpenLayers/Control/MouseDefaults.js +++ b/lib/OpenLayers/Control/MouseDefaults.js @@ -165,7 +165,7 @@ OpenLayers.Control.MouseDefaults = OpenLayers.Class(OpenLayers.Control, { this.zoomBox.style.opacity = "0.50"; this.zoomBox.style.fontSize = "1px"; this.zoomBox.style.zIndex = this.map.Z_INDEX_BASE["Popup"] - 1; - this.map.viewPortDiv.appendChild(this.zoomBox); + this.map.eventsDiv.appendChild(this.zoomBox); } document.onselectstart = OpenLayers.Function.False; OpenLayers.Event.stop(evt); @@ -302,7 +302,7 @@ OpenLayers.Control.MouseDefaults = OpenLayers.Class(OpenLayers.Control, { * Remove the zoombox from the screen and nullify our reference to it. */ removeZoomBox: function() { - this.map.viewPortDiv.removeChild(this.zoomBox); + this.map.eventsDiv.removeChild(this.zoomBox); this.zoomBox = null; }, diff --git a/lib/OpenLayers/Control/MouseToolbar.js b/lib/OpenLayers/Control/MouseToolbar.js index d28ad9b0b6..e928b21e83 100644 --- a/lib/OpenLayers/Control/MouseToolbar.js +++ b/lib/OpenLayers/Control/MouseToolbar.js @@ -207,7 +207,7 @@ OpenLayers.Control.MouseToolbar = OpenLayers.Class( this.zoomBox.style.opacity = "0.50"; this.zoomBox.style.fontSize = "1px"; this.zoomBox.style.zIndex = this.map.Z_INDEX_BASE["Popup"] - 1; - this.map.viewPortDiv.appendChild(this.zoomBox); + this.map.eventsDiv.appendChild(this.zoomBox); this.performedDrag = true; break; case "measure": diff --git a/lib/OpenLayers/Control/OverviewMap.js b/lib/OpenLayers/Control/OverviewMap.js index cc5b1afcbc..c1b2ff7922 100644 --- a/lib/OpenLayers/Control/OverviewMap.js +++ b/lib/OpenLayers/Control/OverviewMap.js @@ -157,7 +157,7 @@ OpenLayers.Control.OverviewMap = OpenLayers.Class(OpenLayers.Control, { this.handlers.drag.destroy(); } - this.ovmap && this.ovmap.viewPortDiv.removeChild(this.extentRectangle); + this.ovmap && this.ovmap.eventsDiv.removeChild(this.extentRectangle); this.extentRectangle = null; if (this.rectEvents) { @@ -489,7 +489,7 @@ OpenLayers.Control.OverviewMap = OpenLayers.Class(OpenLayers.Control, { {controls: [], maxResolution: 'auto', fallThrough: false}, this.mapOptions); this.ovmap = new OpenLayers.Map(this.mapDiv, options); - this.ovmap.viewPortDiv.appendChild(this.extentRectangle); + this.ovmap.eventsDiv.appendChild(this.extentRectangle); // prevent ovmap from being destroyed when the page unloads, because // the OverviewMap control has to do this (and does it). diff --git a/lib/OpenLayers/Handler/Box.js b/lib/OpenLayers/Handler/Box.js index 7885b59a35..4250101d6d 100644 --- a/lib/OpenLayers/Handler/Box.js +++ b/lib/OpenLayers/Handler/Box.js @@ -96,10 +96,10 @@ OpenLayers.Handler.Box = OpenLayers.Class(OpenLayers.Handler, { new OpenLayers.Pixel(-9999, -9999)); this.zoomBox.className = this.boxDivClassName; this.zoomBox.style.zIndex = this.map.Z_INDEX_BASE["Popup"] - 1; - this.map.viewPortDiv.appendChild(this.zoomBox); + this.map.eventsDiv.appendChild(this.zoomBox); OpenLayers.Element.addClass( - this.map.viewPortDiv, "olDrawBox" + this.map.eventsDiv, "olDrawBox" ); }, @@ -157,11 +157,11 @@ OpenLayers.Handler.Box = OpenLayers.Class(OpenLayers.Handler, { * Remove the zoombox from the screen and nullify our reference to it. */ removeBox: function() { - this.map.viewPortDiv.removeChild(this.zoomBox); + this.map.eventsDiv.removeChild(this.zoomBox); this.zoomBox = null; this.boxCharacteristics = null; OpenLayers.Element.removeClass( - this.map.viewPortDiv, "olDrawBox" + this.map.eventsDiv, "olDrawBox" ); },