Reverting unintentional changes in r9234. Meant to just change the controls example.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9235 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -83,9 +83,8 @@ OpenLayers.Handler.Box = OpenLayers.Class(OpenLayers.Handler, {
|
||||
this.zoomBox.style.zIndex = this.map.Z_INDEX_BASE["Popup"] - 1;
|
||||
this.map.viewPortDiv.appendChild(this.zoomBox);
|
||||
|
||||
OpenLayers.Element.addClass(
|
||||
this.map.div, "olDrawBox"
|
||||
);
|
||||
// TBD: use CSS classes instead
|
||||
this.map.div.style.cursor = "crosshair";
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -134,6 +133,9 @@ OpenLayers.Handler.Box = OpenLayers.Class(OpenLayers.Handler, {
|
||||
}
|
||||
this.removeBox();
|
||||
|
||||
// TBD: use CSS classes instead
|
||||
this.map.div.style.cursor = "";
|
||||
|
||||
this.callback("done", [result]);
|
||||
},
|
||||
|
||||
@@ -145,10 +147,6 @@ OpenLayers.Handler.Box = OpenLayers.Class(OpenLayers.Handler, {
|
||||
this.map.viewPortDiv.removeChild(this.zoomBox);
|
||||
this.zoomBox = null;
|
||||
this.boxCharacteristics = null;
|
||||
OpenLayers.Element.removeClass(
|
||||
this.map.div, "olDrawBox"
|
||||
);
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user