Module: ol/interaction/DragZoom

ol/interaction/DragZoom


Classes

DragZoom

Type Definitions

Options{Object}

Properties:
Name Type Argument Default Description
className string <optional>
'ol-dragzoom'

CSS class name for styling the box.

condition Condition <optional>

A function that takes an MapBrowserEvent and returns a boolean to indicate whether that event should be handled. Default is 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.