Classes
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.