Handler for dragging a rectangle across the map. Box is displayed on mouse down, moves on mouse move, and is finished on mouse up.
| OpenLayers. Handler.Box | Handler for dragging a rectangle across the map. |
| Properties | |
| dragHandler | {OpenLayers.Handler.Drag} |
| boxDivClassName | {String} The CSS class to use for drawing the box. |
| boxCharacteristics | {Object} Caches some box characteristics from css. |
| Constructor | |
| OpenLayers. Handler.Box | |
| Functions | |
| setMap | |
| startBox | |
| moveBox | |
| endBox | |
| removeBox | Remove the zoombox from the screen and nullify our reference to it. |
| activate | |
| deactivate |
| control | {OpenLayers.Control} |
| callbacks | {Object} An object containing a single function to be called when the drag operation is finished. The callback should expect to recieve a single argument, the point geometry. |
| options | {Object} |
setMap: function ( map )
startBox: function ( xy )
moveBox: function ( xy )
endBox: function( end )
Remove the zoombox from the screen and nullify our reference to it.
removeBox: function()
activate: function ()
deactivate: function ()