Type Alias HandlerResult
type HandlerResult = {
around?: Point | null;
bearingDelta?: number;
cameraAnimation?: (map: MapLibreMap) => void;
needsRenderFrame?: boolean;
noInertia?: boolean;
originalEvent?: Event;
panDelta?: Point;
pinchAround?: Point | null;
pitchDelta?: number;
rollDelta?: number;
zoomDelta?: number;
}
around?: Point | null;
bearingDelta?: number;
cameraAnimation?: (map: MapLibreMap) => void;
needsRenderFrame?: boolean;
noInertia?: boolean;
originalEvent?: Event;
panDelta?: Point;
pinchAround?: Point | null;
pitchDelta?: number;
rollDelta?: number;
zoomDelta?: number;
}
Properties
Optionalaround
the point to not move when changing the camera
OptionalbearingDelta
bearingDelta?: number
OptionalcameraAnimation
A method that can fire a one-off easing by directly changing the map's camera.
OptionalneedsRenderFrame
needsRenderFrame?: boolean
Makes the manager trigger a frame, allowing the handler to return multiple results over time (see scrollzoom).
OptionalnoInertia
noInertia?: boolean
The camera changes won't get recorded for inertial zooming.
OptionaloriginalEvent
The last three properties are needed by only one handler: scrollzoom.
The DOM event to be used as the originalEvent on any camera change events.
OptionalpanDelta
OptionalpinchAround
same as above, except for pinch actions, which are given higher priority
OptionalpitchDelta
pitchDelta?: number
OptionalrollDelta
rollDelta?: number
OptionalzoomDelta
zoomDelta?: number
Was this helpful?
All handler methods that are called with events can optionally return a
HandlerResult.