Events topic

Visit the Events chapter in the documentation to learn more.

Classes

MapEvent Events
Base class for all the events emitted by the MapLibreMap.
MapEventCameraIdle Events
Emitted when the map camera enters an idle state.
MapEventClick Events
Emitted when the user clicks on the map.
MapEventDoubleClick Events
Emitted when the user clicks twice in a short amount of time on the map.
MapEventIdle Events
Emitted when the map enters an idle state.
MapEventLongClick Events
Emitted when the user clicks on the map and holds button down at the same location for some time.
MapEventMapCreated Events
Emitted when the native map view has been created.
MapEventMoveCamera Events
Emitted when the map camera changes.
MapEventSecondaryClick Events
Emitted when the user clicks with the secondary button on the map. This would be classically the right mouse button.
MapEventStartMoveCamera Events
Emitted when the map camera changes.
MapEventStyleLoaded Events
Emitted when the map style has been loaded.
MapEventUserInput Events
Emitted when the user interacts with the map in any way. Use this class if you don't care about the type of gesture.

Enums

CameraChangeReason Events
The reason the camera is changing.

Typedefs

MapEventCallback = void Function(MapEvent event) Basic Events
Callback that fires every time a MapEvent gets emitted by the map.