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 for dragging a rectangle across the map. |
| Properties | |
| dragHandler | {OpenLayers.Handler.Drag} |
| boxDivClassName | {String} The CSS class to use for drawing the box. |
| boxOffsets | {Object} Caches box offsets from css. |
| Constructor | |
| OpenLayers. | |
| Functions | |
| destroy | |
| setMap | |
| startBox | |
| moveBox | |
| endBox | |
| removeBox | Remove the zoombox from the screen and nullify our reference to it. |
| activate | |
| deactivate | |
| getBoxOffsets | Determines border offsets for a box, according to the box model. |
| control | {OpenLayers.Control} |
| callbacks | {Object} An object with a properties whose values are functions. Various callbacks described below. |
| options | {Object} |
| start | Called when the box drag operation starts. |
| done | Called when the box drag operation is finished. The callback should expect to receive a single argument, the box bounds or a pixel. If the box dragging didn’t span more than a 5 pixel distance, a pixel will be returned instead of a bounds object. |
destroy: function()
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 ()
Determines border offsets for a box, according to the box model.
getBoxOffsets: function()