For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.

Class MapMovementEvent

MapMovementEvent is the event type for the camera-transition map events: movestart, move, moveend, zoomstart, zoom, zoomend, rotatestart, rotate, rotateend, dragstart, drag, dragend, pitchstart, pitch, pitchend, rollstart, roll and rollend. These are fired as the map's view changes, as a result of either user interaction or methods such as Map.jumpTo / Map.flyTo.

Hierarchy (View Summary)

Index

Constructors

Properties

Constructors

Properties

originalEvent: MouseEvent | TouchEvent | WheelEvent | undefined
target: MapMLGL

The object that fired the event. Set when the event is fired, and narrowed to a more specific type (e.g. Map, Marker) by the event subclasses.

type:
    | "movestart"
    | "move"
    | "moveend"
    | "zoomstart"
    | "zoom"
    | "zoomend"
    | "rotatestart"
    | "rotate"
    | "rotateend"
    | "dragstart"
    | "drag"
    | "dragend"
    | "pitchstart"
    | "pitch"
    | "pitchend"
    | "rollstart"
    | "roll"
    | "rollend"
Was this helpful?