Class TwoFingersTouchPitchHandler
Hierarchy (View Summary)
- TwoFingersTouchHandler
- TwoFingersTouchPitchHandler
Index
Constructors
Methods
Constructors
constructor
Parameters
- map: MapLibreMap
Returns TwoFingersTouchPitchHandler
Methods
disable
enable
Enables the "drag to pitch" interaction.
Parameters
Optionaloptions: boolean | AroundCenterOptions | null
Returns void
gestureBeginsVertically
isActive
Returns a Boolean indicating whether the "drag to pitch" interaction is active, i.e. currently being used.
Returns boolean
trueif the "drag to pitch" interaction is active.
isEnabled
Returns a Boolean indicating whether the "drag to pitch" interaction is enabled.
Returns boolean
trueif the "drag to pitch" interaction is enabled.
reset
resetcan be called by the manager at any time and must reset everything to it's original stateReturns void
touchcancel
Returns void
touchend
Parameters
- e: TouchEvent
- points: Point[]
- mapTouches: Touch[]
Returns void
touchmove
Parameters
- e: TouchEvent
- points: Point[]
- mapTouches: Touch[]
Returns void | HandlerResult
touchstart
Parameters
- e: TouchEvent
- points: Point[]
- mapTouches: Touch[]
Returns void
Was this helpful?
The
TwoFingersTouchPitchHandlerallows the user to pitch the map by dragging up and down with two fingers.