On this page

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

Properties

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?
SDK JS
Reference
MapLibreZoomEvent