new DragBox
Stability: experimental
Allows the user to zoom the map by clicking and dragging on the map, normally combined with an ol.events.condition that limits it to when the shift key is held down.
This interaction is only supported for mouse devices.
Parameters:
| Name | Type | Argument | Description |
|---|---|---|---|
options |
olx.interaction.DragBoxOptions |
<optional> |
Options. |
- Source:
- dragboxinteraction.js, line 87
Fires:
- ol.DragBoxEvent ol.event:DragBoxEvent
Extends
- ol.interaction.Pointer
Methods
-
getGeometry
Stability: not documented -
Returns geometry of last drawn box.
- Source:
- dragboxinteraction.js, line 138
Returns:
Geometry.
- Type
- ol.geom.Geometry
OpenLayers 3