Skip to content

HandlerResult

HandlerResult = object

Defined in: ui/handler_manager.ts:110

All handler methods that are called with events can optionally return a HandlerResult.

Properties

around?

optional around: Point | null

Defined in: ui/handler_manager.ts:119

the point to not move when changing the camera


cameraAnimation()?

optional cameraAnimation: (map: MapLibreMap) => any

Defined in: ui/handler_manager.ts:127

A method that can fire a one-off easing by directly changing the map's camera.

Parameters

Parameter Type
map MapLibreMap

Returns

any


needsRenderFrame?

optional needsRenderFrame: boolean

Defined in: ui/handler_manager.ts:136

Makes the manager trigger a frame, allowing the handler to return multiple results over time (see scrollzoom).


noInertia?

optional noInertia: boolean

Defined in: ui/handler_manager.ts:140

The camera changes won't get recorded for inertial zooming.


originalEvent?

optional originalEvent: Event

Defined in: ui/handler_manager.ts:132

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.


pinchAround?

optional pinchAround: Point | null

Defined in: ui/handler_manager.ts:123

same as above, except for pinch actions, which are given higher priority