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 Description classNamestring
(defaults to 'ol-dragbox')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 isol/events/condition~mouseActionButton.minAreanumber
(defaults to 64)The minimum area of the box in pixel, this value is used by the default
boxEndConditionfunction.boxEndConditionEndCondition | undefined 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 | undefined Code to execute just before
boxendis fired.