ol/interaction/DragZoom
Classes
- DragZoom
Type Definitions
-
Options{Object}
-
Properties:
Name Type Description classNamestring
(defaults to 'ol-dragzoom')CSS class name for styling the box.
conditionCondition | undefined A function that takes a
MapBrowserEventand returns a boolean to indicate whether that event should be handled. Default isshiftKeyOnly.durationnumber
(defaults to 200)Animation duration in milliseconds.
outboolean
(defaults to false)Use interaction for zooming out.
minAreanumber
(defaults to 64)The minimum area of the box in pixel, this value is used by the parent default
boxEndConditionfunction.
© 2005-present, OpenLayers Contributors All rights reserved.Licensed under the BSD 2-Clause License.
https://openlayers.org/en/latest/apidoc/module-ol_interaction_DragZoom.html