Events topic
Visit the Events chapter in the documentation to learn more.
Classes
- MapEvent
-
Base class of the events that a MapLibreMap reports through its
on…callbacks. - MapEventCameraMove
- The camera moved, see MapLibreMap.onCameraMove.
- MapEventCameraMoveEnd
- The camera stopped moving, see MapLibreMap.onCameraMoveEnd.
- MapEventCameraMoveStart
- The camera starts to move, see MapLibreMap.onCameraMoveStart.
- MapEventClick
- The user tapped or clicked the map, see MapLibreMap.onClick.
- MapEventContextLost
- The browser took the map's WebGL context away, see MapLibreMap.onContextLost.
- MapEventContextRestored
- The browser gave the map's WebGL context back, see MapLibreMap.onContextRestored.
- MapEventDoubleClick
- The user tapped or clicked the map twice in quick succession, see MapLibreMap.onDoubleClick.
- MapEventDrag
- The pointer of a drag moved, see MapLibreMap.onDrag.
- MapEventDragEnd
- A drag ended, see MapLibreMap.onDragEnd.
- MapEventDragStart
- The user started to drag the map with one finger or the primary mouse button, see MapLibreMap.onDragStart.
- MapEventError
- Something failed to load or render, see MapLibreMap.onError.
- MapEventGlyphs
- The map requested or loaded glyphs of a font, see MapLibreMap.onGlyphs.
- MapEventIdle
- The map is idle, see MapLibreMap.onIdle.
- MapEventLoadingFinished
- The map loaded its style and what the view needs, see MapLibreMap.onLoadingFinished.
- MapEventLoadingStarted
- The map starts to load a style, see MapLibreMap.onLoadingStarted.
- MapEventLongClick
- The user pressed the map at one location for a while, see MapLibreMap.onLongClick.
- MapEventPointerLeave
- The mouse or a stylus left the map, see MapLibreMap.onPointerLeave.
- MapEventPointerMove
- The mouse or a stylus moved over the map without a pressed button, see MapLibreMap.onPointerMove. Touches don't hover, so this is reported for mice and styluses only.
- MapEventProjectionChanged
- The map switched its projection, see MapLibreMap.onProjectionChanged.
- MapEventRenderFrame
- The map rendered a frame, see MapLibreMap.onRenderFrame.
- MapEventRenderingChanged
- The map stops or resumes rendering, see MapLibreMap.onRenderingChanged.
- MapEventRenderMap
- The map finished rendering a view, see MapLibreMap.onRenderMap.
- MapEventResize
- The map changed its size, see MapLibreMap.onResize.
- MapEventSecondaryClick
- The user clicked the map with the secondary mouse button, usually the right one, see MapLibreMap.onSecondaryClick.
- MapEventSourceChanged
- A source of the style changed, see MapLibreMap.onSourceChanged.
- MapEventSprite
- The map requested or loaded a sprite, see MapLibreMap.onSprite.
- MapEventStyleImageMissing
- A layer uses an image that the style doesn't have, see MapLibreMap.onStyleImageMissing.
- MapEventTile
- A tile moved to another step of loading, see MapLibreMap.onTile.
- MapEventUserInput
- The user tapped, clicked, dragged or hovered the map. Use this class if you don't care about the kind of input.
- MapRenderingStats
- Statistics of a rendered frame, see MapEventRenderFrame.
Enums
- CameraChangeReason
- Why the camera moves.
- MapErrorKind
- What failed, see MapEventError.
- MapResourceState
- The state of a glyph or sprite request.
- MapTileOperation
- A step of loading a tile, see MapEventTile.
Typedefs
-
MapEventCallback<
T extends MapEvent> = void Function(T event) -
Callback of a MapLibreMap event of type
T.