Classes
Type Definitions
-
A function that takes a
MapBrowserEventand twoPixels 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.
conditionCondition <optional>
A function that takes an
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.boxEndConditionEndCondition <optional>
A function that takes a
MapBrowserEventand twoPixels 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.