Skip to content

MapLibreZoomEvent

MapLibreZoomEvent: object

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

Type declaration

originalEvent

originalEvent: MouseEvent

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

target

target: Map

The Map instance that triggered the event

type

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

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

Defined in

src/ui/events.ts:671