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