new DragZoom
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.
Parameters:
| Name | Type | Argument | Description |
|---|---|---|---|
options |
olx.interaction.DragZoomOptions |
<optional> |
Options. |
- Source:
- dragzoominteraction.js, line 28
Extends
Methods
-
getGeometry
Stability: not documented -
Returns geometry of last drawn box.
- Inherited From:
- Source:
- dragboxinteraction.js, line 117
Returns:
Geometry.
- Type
- ol.geom.Geometry
OpenLayers 3