On this page

Type Alias DragPanOptions

A DragPanHandler options object

type DragPanOptions = {
    deceleration?: number;
    easing?: (t: number) => number;
    linearity?: number;
    maxSpeed?: number;
}
Index

Properties

deceleration?: number

the maximum value of the drag velocity.

1400
easing?: (t: number) => number

easing function applied to map.panTo when applying the drag.

Type Declaration

    • (t: number): number
    • Parameters

      • t: number

        the easing function

      Returns number

bezier(0, 0, 0.3, 1)
linearity?: number

factor used to scale the drag velocity

0
maxSpeed?: number

the rate at which the speed reduces after the pan ends.

2500
Was this helpful?
SDK JS
Reference
DragPanOptions