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: Optional[MapLatitudeLongitude] = None

Tap/press coordinates associated with this event.

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

event_typeinstance-attribute

event_type: MapEventType

Concrete subtype of this map event.

idclass-attributeinstance-attribute

id: Optional[str] = None

Optional custom identifier associated with this event.

Set only for flet_map.MapEventType.MOVE and flet_map.MapEventType.ROTATE.

sourceinstance-attribute

source: MapEventSource

Who/what issued the event.