Spec-Zone.ru › MapLibre GL JS

DragPanOptions

DragPanOptions = object

A DragPanHandler options object

Properties

deceleration?

optional deceleration?: number

the maximum value of the drag velocity.

Default Value

1400

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

bezier(0, 0, 0.3, 1)

linearity?

optional linearity?: number

factor used to scale the drag velocity

Default Value

0

maxSpeed?

optional maxSpeed?: number

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

Default Value

2500

© MapLibre contributors
Licensed under the 3-Clause BSD License.
https://maplibre.org/maplibre-gl-js/docs/API/type-aliases/DragPanOptions/

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API