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>
Type Parameters
- TOrig = unknown
Hierarchy (View Summary)
Index
Constructors
Properties
Constructors
constructor
Type Parameters
- TOrig = unknown
Parameters
- type: string
Optionaldata: object
Returns MapLibreEvent<TOrig>
Properties
originalEvent
target
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
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"
| "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"
The base event for MapLibre