MapEvent
Inherits: Event['Map']
Map event emitted for camera/interaction updates from various sources.
Properties
-
camera(Camera) –The camera state after the event.
-
coordinates(MapLatitudeLongitude | None) –Tap/press coordinates associated with this event.
-
event_type(MapEventType) –Concrete subtype of this map event.
-
id(str | None) –Optional custom identifier associated with this event.
-
old_camera(Camera | None) –Camera state before the event.
-
source(MapEventSource) –Who/what issued the event.
Properties#
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.
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
Camera state before the event.
Set only for MapEventType.MOVE, MapEventType.FLING_ANIMATION,
MapEventType.DOUBLE_TAP_ZOOM, MapEventType.SCROLL_WHEEL_ZOOM,
MapEventType.ROTATE, and MapEventType.NON_ROTATED_SIZE_CHANGE.