DragPanOptions
DragPanOptions:
object
A DragPanHandler options object
Type declaration
deceleration?
optionaldeceleration:number
the maximum value of the drag velocity.
Default Value
1400
easing()?
optionaleasing: (t:number) =>number
easing function applied to map.panTo when applying the drag.
Default Value
bezier(0, 0, 0.3, 1)
Parameters
| Parameter | Type | Description |
|---|---|---|
t
| number
| the easing function |
Returns
number
linearity?
optionallinearity:number
factor used to scale the drag velocity
Default Value
0
maxSpeed?
optionalmaxSpeed:number
the rate at which the speed reduces after the pan ends.
Default Value
2500