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
stateDetermines in which state the gesture is.
originPosition of the touch point relative to the MapView in pixels.
translationTranslation offset since the last position in pixels.
velocityVelocity of panning in pixels per millisecond.