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 MapLibreEvent<TOrig>

The base event for MapLibre

Type Parameters

  • TOrig = unknown

Hierarchy (View Summary)

Index

Constructors

Properties

Constructors

Properties

originalEvent: TOrig
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:
    | "error"
    | "load"
    | "idle"
    | "remove"
    | "render"
    | "resize"
    | "webglcontextlost"
    | "webglcontextrestored"
    | "dataloading"
    | "data"
    | "sourcedataloading"
    | "styledataloading"
    | "sourcedata"
    | "styledata"
    | "style.load"
    | "styleimagemissing"
    | "dataabort"
    | "sourcedataabort"
    | "boxzoomcancel"
    | "boxzoomstart"
    | "boxzoomend"
    | "touchcancel"
    | "touchmove"
    | "touchend"
    | "touchstart"
    | "click"
    | "contextmenu"
    | "dblclick"
    | "mousemove"
    | "mouseup"
    | "mousedown"
    | "mouseout"
    | "mouseover"
    | "movestart"
    | "move"
    | "moveend"
    | "zoomstart"
    | "zoom"
    | "zoomend"
    | "rotatestart"
    | "rotate"
    | "rotateend"
    | "dragstart"
    | "drag"
    | "dragend"
    | "pitchstart"
    | "pitch"
    | "pitchend"
    | "rollstart"
    | "roll"
    | "rollend"
    | "wheel"
    | "terrain"
    | "cooperativegestureprevented"
    | "projectiontransition"
    | "mouseenter"
    | "mouseleave"
Was this helpful?