ReadonlybuttonThis property indicates which button was pressed on the mouse to trigger the event.
Possible values:
Optional Readonlydetailoptional event detail data
Optionallayer?: TileLayer | CustomLayerIf the event was triggered as a result of user interaction (e.g., clicking or hovering),
and the source of the event is a layer-based object, this property refers to the associated
TileLayer or CustomLayer instance from which the event originated.
Useful for identifying which data layer was interacted with, especially when multiple layers are active.
Optional ReadonlymapGives the x coordinate relative to the map container HTMLElement in pixels. This property is only set when created by user interaction with native mouse/touch/pointer events.
Optional ReadonlymapGives the y coordinate relative to the map container HTMLElement in pixels. This property is only set when created by user interaction with native mouse/touch/pointer events.
Optional ReadonlynativeThe underlying native Mouse-, Pointer- or Touch-event generated by the browser. This property will be null if the Event was not directly generated from a native event.
Optional ReadonlytargetThe feature on the map this event relates to. e.g. User clicks/taps on a specific Feature on the map. If the event does not refer to any feature, the property is null.
ReadonlytimeThis property specifies the time at which the event was created in milliseconds relative to 1970-01-01T00:00:00Z.
ReadonlytypeThe type of the event. Supported events: "mapviewchangestart", "mapviewchange", "mapviewchangeend", "resize", "tap", "dbltap", "pointerup", "pointerenter", "pointerleave", "pointerdown", "pointermove", "pressmove"
The MapEvent represents an event which takes place in the map. An event can be triggered by user interaction e.g. tapping on the map, or being generated to represent the progress of an asynchronous task.