Classes
Type Definitions
-
EndCondition()
interaction/DragBox.js, line 12 -
A function that takes a
module:ol/MapBrowserEventand twomodule:ol/pixel~Pixels and returns a{boolean}. If the condition is met, true should be returned. -
Options{Object}
-
Properties:
Name Type Argument Default Description classNamestring <optional>
'ol-dragbox' CSS class name for styling the box.
conditionmodule:ol/events/condition~Condition <optional>
A function that takes an
module:ol/MapBrowserEvent~MapBrowserEventand returns a boolean to indicate whether that event should be handled. Default isol/events/condition~mouseActionButton.minAreanumber <optional>
64 The minimum area of the box in pixel, this value is used by the default
boxEndConditionfunction.boxEndConditionmodule:ol/interaction/DragBox~EndCondition <optional>
A function that takes a
module:ol/MapBrowserEvent~MapBrowserEventand twomodule:ol/pixel~Pixels to indicate whether aboxendevent should be fired. Default istrueif the area of the box is bigger than theminAreaoption.onBoxEndfunction <optional>
Code to execute just before
boxendis fired.
OpenLayers