Skip to content

Both copy text to your clipboard — Build with AI copies a setup prompt to paste into Claude Code, Cursor, Codex or Copilot; Copy page as Markdown copies this page to paste into a chat. How it works

abstract TwoFingersTouchHandler ​

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

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

Extended by ​

Implements ​

Methods ​

disable() ​

disable(): void

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

Disables the "drag to pitch" interaction.

Returns ​

void

Example ​

ts
map.touchPitch.disable();

Implementation of ​

Handler.disable


enable() ​

enable(options?: boolean | AroundCenterOptions): void

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

Enables the "drag to pitch" interaction.

Parameters ​

ParameterType
options?boolean | AroundCenterOptions

Returns ​

void

Example ​

ts
map.touchPitch.enable();

Implementation of ​

Handler.enable


isActive() ​

isActive(): boolean

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

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

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

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

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

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