Spec-Zone.ru › MapLibre GL JS

HandlerResult

HandlerResult = object

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

Properties

around?

optional around?: Point | null

the point to not move when changing the camera


cameraAnimation?

optional cameraAnimation?: (map: Map) => void

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

Parameters

Parameter Type
map Map

Returns

void


needsRenderFrame?

optional needsRenderFrame?: boolean

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


noInertia?

optional noInertia?: boolean

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


originalEvent?

optional originalEvent?: Event

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

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

© MapLibre contributors
Licensed under the 3-Clause BSD License.
https://maplibre.org/maplibre-gl-js/docs/API/type-aliases/HandlerResult/

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API