HandlerResult
HandlerResult =
object
All handler methods that are called with events can optionally return a HandlerResult.
Properties
around?
optionalaround?:Point|null
the point to not move when changing the camera
cameraAnimation?
optionalcameraAnimation?: (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?
optionalneedsRenderFrame?:boolean
Makes the manager trigger a frame, allowing the handler to return multiple results over time (see scrollzoom).
noInertia?
optionalnoInertia?:boolean
The camera changes won't get recorded for inertial zooming.
originalEvent?
optionaloriginalEvent?: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?
optionalpinchAround?: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/