preventDefault method

dynamic preventDefault()

Prevents subsequent default processing of the event by the map.

Calling this method will prevent the following default map behaviors:

  • On mousedown events, the behavior of {@link DragPanHandler}
  • On mousedown events, the behavior of {@link DragRotateHandler}
  • On mousedown events, the behavior of {@link BoxZoomHandler}
  • On dblclick events, the behavior of {@link DoubleClickZoomHandler}

Implementation

preventDefault() => jsObject.preventDefault();