Optional
data: anyThe geographic location on the map of the mouse cursor.
The DOM event which caused the map event.
The pixel coordinates of the mouse cursor, relative to the map and measured from the top left corner.
The Map
object that fired the event.
The event type
true
if preventDefault
has been called.
Prevents subsequent default processing of the event by the map.
Calling this method will prevent the following default map behaviors:
mousedown
events, the behavior of DragPanHandlermousedown
events, the behavior of DragRotateHandlermousedown
events, the behavior of BoxZoomHandlerdblclick
events, the behavior of DoubleClickZoomHandlerGenerated using TypeDoc
MapMouseEvent
is the event type for mouse-related map events.Example