HandlerResult
HandlerResult:
object
All handler methods that are called with events can optionally return a HandlerResult.
Type declaration
around?
optionalaround:Point|null
the point to not move when changing the camera
bearingDelta?
optionalbearingDelta:number
cameraAnimation()?
optionalcameraAnimation: (map:Map) =>any
A method that can fire a one-off easing by directly changing the map’s camera.
Parameters
| Parameter | Type |
|---|---|
map
| Map
|
Returns
any
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.
panDelta?
optionalpanDelta:Point
pinchAround?
optionalpinchAround:Point|null
same as above, except for pinch actions, which are given higher priority
pitchDelta?
optionalpitchDelta:number
zoomDelta?
optionalzoomDelta:number