Classes
Members
-
DragBoxEventType{string}
-
Properties:
Name Type Default Description BOXSTART
string boxstart BOXDRAG
string boxdrag BOXEND
string boxend
Type Definitions
-
EndCondition()
interaction/DragBox.js, line 12 -
A function that takes a
module:ol/MapBrowserEvent
and twomodule:ol/pixel~Pixel
s and returns a{boolean}
. If the condition is met, true should be returned. -
Options{Object}
-
Properties:
Name Type Argument Default Description className
string <optional>
'ol-dragbox' 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 isol/events/condition~always
.minArea
number <optional>
64 The minimum area of the box in pixel, this value is used by the default
boxEndCondition
function.boxEndCondition
module:ol/interaction/DragBox~EndCondition <optional>
A function that takes a
module:ol/MapBrowserEvent~MapBrowserEvent
and twomodule:ol/pixel~Pixel
s to indicate whether aboxend
event should be fired. Default istrue
if the area of the box is bigger than theminArea
option.onBoxEnd
function Code to execute just before
boxend
is fired.