mapTemplate(_:didUpdatePanGestureWithTranslation:velocity:)
Tells the delegate that the pan gesture changed.
Declaration
optional func mapTemplate(_ mapTemplate: CPMapTemplate, didUpdatePanGestureWithTranslation translation: CGPoint, velocity: CGPoint)Parameters
- mapTemplate:
The current map template.
- translation:
The updated translation point.
- velocity:
The velocity of the pan gesture.
Discussion
CarPlay doesn’t call this method when connected to some CarPlay systems.
See Also
Panning the Map
mapTemplateDidShowPanningInterface(_:)mapTemplateWillDismissPanningInterface(_:)mapTemplateDidDismissPanningInterface(_:)mapTemplateDidBeginPanGesture(_:)mapTemplate(_:panBeganWith:)mapTemplate(_:panWith:)mapTemplate(_:panEndedWith:)CPMapTemplate.PanDirectionmapTemplate(_:didEndPanGestureWithVelocity:)