Classes
Type Definitions
-
Options{Object}
-
Properties:
Name Type Argument Default Description className
string <optional>
'ol-dragzoom' CSS class name for styling the box.
condition
module:ol/events/condition~Condition <optional>
A function that takes an
module:ol/MapBrowserEvent~MapBrowserEvent
and returns a boolean to indicate whether that event should be handled. Default ismodule:ol/events/condition~shiftKeyOnly
.duration
number <optional>
200 Animation duration in milliseconds.
out
boolean <optional>
false Use interaction for zooming out.
minArea
number <optional>
64 The minimum area of the box in pixel, this value is used by the parent default
boxEndCondition
function.