This patch causes the zoomBox to become visible again, after the changes
to add an eventsDiv, and fixes the OverviewMap to work again. r=bartvde, (Closes #3104) git-svn-id: http://svn.openlayers.org/trunk/openlayers@11455 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -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"
|
||||
);
|
||||
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user