TwoFingersTouchZoomHandler
The TwoFingersTouchHandlers allows the user to zoom the map two fingers
Extends
Methods
disable()
disable():
void
Disables the “drag to pitch” interaction.
Returns
void
Inherited from
TwoFingersTouchHandler.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
Inherited from
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.
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.