Skip to content

Class: TwoFingersTouchRotateHandler

The TwoFingersTouchHandlers allows the user to rotate the map two fingers

Hierarchy

TwoFingersTouchRotateHandler

Methods

disable

disable(): void

Disables the "drag to pitch" interaction.

Returns

void

Example

map.touchPitch.disable();

Inherited from

TwoFingersTouchHandler.disable

Defined in

src/ui/handler/two_fingers_touch.ts:109


enable

enable(options?): void

Enables the "drag to pitch" interaction.

Parameters

Name Type
options? boolean | AroundCenterOptions

Returns

void

Example

map.touchPitch.enable();

Inherited from

TwoFingersTouchHandler.enable

Defined in

src/ui/handler/two_fingers_touch.ts:96


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

Defined in

src/ui/handler/two_fingers_touch.ts:128


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

Defined in

src/ui/handler/two_fingers_touch.ts:119

facebook
Tổng đài hỗ trợ
089.616.4567
facebook Chat Facebook zalo Chat Zalo