The TwoFingersTouchPitchHandler allows the user to pitch the map by dragging up and down with two fingers.
TwoFingersTouchPitchHandler
Disables the "drag to pitch" interaction.
map.touchPitch.disable(); Copy
map.touchPitch.disable();
Enables the "drag to pitch" interaction.
Optional
map.touchPitch.enable(); Copy
map.touchPitch.enable();
Returns a Boolean indicating whether the "drag to pitch" interaction is active, i.e. currently being used.
true if the "drag to pitch" interaction is active.
true
Returns a Boolean indicating whether the "drag to pitch" interaction is enabled.
true if the "drag to pitch" interaction is enabled.
The
TwoFingersTouchPitchHandler
allows the user to pitch the map by dragging up and down with two fingers.