Skip to main content

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

camerainstance-attribute

camera: Camera

The camera state after the event.

coordinatesclass-attributeinstance-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_typeinstance-attribute

event_type: MapEventType

Concrete subtype of this map event.

idclass-attributeinstance-attribute

id: str | None = None

Optional custom identifier associated with this event.

Set only for MapEventType.MOVE and MapEventType.ROTATE.

old_cameraclass-attributeinstance-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.

sourceinstance-attribute

source: MapEventSource

Who/what issued the event.