On this page

Class TwoFingersTouchHandlerAbstract

Handlers interpret dom events and return camera changes that should be applied to the map (HandlerResults). The camera changes are all deltas. The handler itself should have no knowledge of the map's current state. This makes it easier to merge multiple results and keeps handlers simpler. For example, if there is a mousedown and mousemove, the mousePan handler would return a panDelta on the mousemove.

Hierarchy (View Summary)

Implements

Index

Constructors

Methods

  • Disables the "drag to pitch" interaction.

    Returns void

    map.touchPitch.disable();
    
  • 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.

  • Returns a Boolean indicating whether the "drag to pitch" interaction is enabled.

    Returns boolean

    true if the "drag to pitch" interaction is enabled.

  • reset can be called by the manager at any time and must reset everything to it's original state

    Returns void

Was this helpful?
SDK JS
Reference
TwoFingersTouchHandler