PanDelegate

public protocol PanDelegate : AnyObject

Protocol for handling pan gestures. Pan gesture occurs when a finger is moving on the screen.

  • Called when the pan gesture occurs.

    Declaration

    Swift

    func onPan(state: GestureState, origin: Point2D, translation: Point2D, velocity: Double)

    Parameters

    state

    Determines in which state the gesture is.

    origin

    Position of the touch point relative to the MapView in pixels.

    translation

    Translation offset since the last position in pixels.

    velocity

    Velocity of panning in pixels per millisecond.