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 touchstart events, the behavior of {@link DragPanHandler}
  • On touchstart events, the behavior of {@link TouchZoomRotateHandler}

Implementation

preventDefault() => jsObject.preventDefault();