Spec-Zone.ru › MapLibre GL JS

TwoFingersTouchPitchHandler

The TwoFingersTouchPitchHandler allows the user to pitch the map by dragging up and down with two fingers.

Extends

  • TwoFingersTouchHandler

Methods

disable()

disable(): void

Disables the "drag to pitch" interaction.

Returns

void

Example

map.touchPitch.disable();

Inherited from

TwoFingersTouchHandler.disable


enable()

enable(options?: boolean | AroundCenterOptions): void

Enables the "drag to pitch" interaction.

Parameters

Parameter Type
options? boolean | AroundCenterOptions

Returns

void

Example

map.touchPitch.enable();

Inherited from

TwoFingersTouchHandler.enable


isActive()

isActive(): boolean

Returns a Boolean indicating whether the "drag to pitch" interaction is active, i.e. currently being used.

Returns

boolean

true if the "drag to pitch" interaction is active.

Inherited from

TwoFingersTouchHandler.isActive


isEnabled()

isEnabled(): boolean

Returns a Boolean indicating whether the "drag to pitch" interaction is enabled.

Returns

boolean

true if the "drag to pitch" interaction is enabled.

Inherited from

TwoFingersTouchHandler.isEnabled

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

Spec-Zone.ru

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