Type alias DragPanOptions

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

A DragPanHandler options object

Type declaration

  • Optional deceleration?: number

    the maximum value of the drag velocity.

    Default Value

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

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

    Default Value

    bezier(0, 0, 0.3, 1)
    
      • (t): number
      • Parameters

        • t: number

          the easing function

        Returns number

  • Optional linearity?: number

    factor used to scale the drag velocity

    Default Value

    0
    
  • Optional maxSpeed?: number

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

    Default Value

    2500