new DragZoom(opt_options)
interaction/DragZoom.js, line 33
| Name | Type | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Options.
|
|||||||||||||||||||||
import DragZoom from 'ol/interaction/DragZoom';
Allows the user to zoom the map by clicking and dragging on the map,
normally combined with an module:ol/events/condition that limits
it to when a key, shift by default, is held down.
To change the style of the box, use CSS and the .ol-dragzoom selector, or
your custom one configured with className.
| Name | Type | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Options.
|
|||||||||||||||||||||