Join us online - 19th of November
Save your spot
For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.

Type Alias MapLibreZoomEvent

A MapLibreZoomEvent is the event type for the boxzoom-related map events emitted by the BoxZoomHandler.

type MapLibreZoomEvent = {
    originalEvent: MouseEvent;
    target: MapLibreMap;
    type: "boxzoomstart" | "boxzoomend" | "boxzoomcancel";
}
Index
originalEvent: MouseEvent

The DOM event that triggered the boxzoom event. Can be a MouseEvent or KeyboardEvent

target: MapLibreMap

The Map instance that triggered the event

type: "boxzoomstart" | "boxzoomend" | "boxzoomcancel"

The type of boxzoom event. One of boxzoomstart, boxzoomend or boxzoomcancel

Was this helpful?