PinchRotateDelegate
public protocol PinchRotateDelegate : AnyObject
Protocol for handling pinch rotate gestures. Pinch rotate gesture occurs when two fingers are on the screen and at least one of them moves.
-
Called when the pinch rotate gesture occurs.
Declaration
Swift
func onPinchRotate(state: GestureState, pinchOrigin: Point2D, rotationOrigin: Point2D, twoFingerDistance: Double, rotation: Angle)Parameters
stateDetermines in which state the gesture is.
pinchOriginPosition where the pinch happened relative to the MapView in pixels.
rotationOriginPosition where the rotation happened relative to the MapView in pixels.
twoFingerDistanceDistance between the two fingers in pixels.
rotationFingers rotation angle delta. Indicates how much the fingers rotation angle has changed since the previous gesture update. Clockwise finger rotation gives positive deltas, counter clockwise finger rotation gives negative deltas.