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: Optional[MapLatitudeLongitude] = NoneTap/press coordinates associated with this event.
Set only for flet_map.MapEventType.TAP, flet_map.MapEventType.SECONDARY_TAP, and flet_map.MapEventType.LONG_PRESS.
idclass-attributeinstance-attribute
id: Optional[str] = NoneOptional custom identifier associated with this event.
Set only for flet_map.MapEventType.MOVE and flet_map.MapEventType.ROTATE.
old_cameraclass-attributeinstance-attribute
old_camera: Optional[Camera] = NoneCamera state before the event.
Set only for flet_map.MapEventType.MOVE, flet_map.MapEventType.FLING_ANIMATION, flet_map.MapEventType.DOUBLE_TAP_ZOOM, flet_map.MapEventType.SCROLL_WHEEL_ZOOM, flet_map.MapEventType.ROTATE, and flet_map.MapEventType.NON_ROTATED_SIZE_CHANGE.