Skip to content

TwoFingersTouchPitchHandler

Defined in: src/ui/handler/two_fingers_touch.ts:254

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

Extends

Methods

disable()

disable(): void

Defined in: src/ui/handler/two_fingers_touch.ts:109

Disables the "drag to pitch" interaction.

Returns

void

Example

map.touchPitch.disable();

Inherited from

TwoFingersTouchHandler.disable


enable()

enable(options?: boolean | AroundCenterOptions): void

Defined in: src/ui/handler/two_fingers_touch.ts:96

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

Defined in: src/ui/handler/two_fingers_touch.ts:128

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

Defined in: src/ui/handler/two_fingers_touch.ts:119

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