Skip to main content

`abstract` TwoFingersTouchHandler

The TwoFingersTouchHandlers allows the user to zoom, pitch and rotate the map using two fingers

Extended by

Implements

Methods

disable()

disable(): void

Disables the “drag to pitch” interaction.

Returns

void

Implementation of

Handler.disable

Example

map.touchPitch.disable();

enable()

enable(options?: boolean | AroundCenterOptions): void

Enables the “drag to pitch” interaction.

Parameters

Parameter Type
options? boolean | AroundCenterOptions

Returns

void

Implementation of

Handler.enable

Example

map.touchPitch.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.

Implementation of

Handler.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.

Implementation of

Handler.isEnabled


reset()

reset(): void

reset can be called by the manager at any time and must reset everything to it’s original state

Returns

void

Implementation of

Handler.reset

Last updated August 23, 2024.