Skip to content

MapEvent

Inherits: Event['Map']

Map event emitted for camera/interaction updates from various sources.

Properties

Properties#

camera instance-attribute #

camera: Camera

The camera state after the event.

coordinates class-attribute instance-attribute #

coordinates: MapLatitudeLongitude | None = None

Tap/press coordinates associated with this event.

Set only for MapEventType.TAP, MapEventType.SECONDARY_TAP, and MapEventType.LONG_PRESS.

event_type instance-attribute #

event_type: MapEventType

Concrete subtype of this map event.

id class-attribute instance-attribute #

id: str | None = None

Optional custom identifier associated with this event.

Set only for MapEventType.MOVE and MapEventType.ROTATE.

old_camera class-attribute instance-attribute #

old_camera: Camera | None = None

source instance-attribute #

Who/what issued the event.