MapEvent
Map event emitted for camera/interaction updates from various sources.
Inherits: Event
Properties
camera- The camera state after the event.coordinates- Tap/press coordinates associated with this event.event_type- Concrete subtype of this map event.id- Optional custom identifier associated with this event.old_camera- Camera state before the event.source- Who/what issued the event.
Properties
coordinatesclass-attributeinstance-attribute
coordinates: MapLatitudeLongitude | None = NoneTap/press coordinates associated with this event.
Set only for MapEventType.TAP, MapEventType.SECONDARY_TAP, and
MapEventType.LONG_PRESS.
idclass-attributeinstance-attribute
id: str | None = NoneOptional custom identifier associated with this event.
Set only for MapEventType.MOVE and MapEventType.ROTATE.
old_cameraclass-attributeinstance-attribute
old_camera: Camera | None = NoneCamera 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.