---
title: "mapTemplate(_:didUpdatePanGestureWithTranslation:velocity:)"
framework: carplay
role: symbol
role_heading: Instance Method
path: "carplay/cpmaptemplatedelegate/maptemplate(_:didupdatepangesturewithtranslation:velocity:)"
---

# mapTemplate(_:didUpdatePanGestureWithTranslation:velocity:)

Tells the delegate that the pan gesture changed.

## Declaration

```swift
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

Discussion CarPlay doesn’t call this method when connected to some CarPlay systems.

## See Also

### Panning the Map

- [mapTemplateDidShowPanningInterface(_:)](carplay/cpmaptemplatedelegate/maptemplatedidshowpanninginterface(_:).md)
- [mapTemplateWillDismissPanningInterface(_:)](carplay/cpmaptemplatedelegate/maptemplatewilldismisspanninginterface(_:).md)
- [mapTemplateDidDismissPanningInterface(_:)](carplay/cpmaptemplatedelegate/maptemplatediddismisspanninginterface(_:).md)
- [mapTemplateDidBeginPanGesture(_:)](carplay/cpmaptemplatedelegate/maptemplatedidbeginpangesture(_:).md)
- [mapTemplate(_:panBeganWith:)](carplay/cpmaptemplatedelegate/maptemplate(_:panbeganwith:).md)
- [mapTemplate(_:panWith:)](carplay/cpmaptemplatedelegate/maptemplate(_:panwith:).md)
- [mapTemplate(_:panEndedWith:)](carplay/cpmaptemplatedelegate/maptemplate(_:panendedwith:).md)
- [CPMapTemplate.PanDirection](carplay/cpmaptemplate/pandirection.md)
- [mapTemplate(_:didEndPanGestureWithVelocity:)](carplay/cpmaptemplatedelegate/maptemplate(_:didendpangesturewithvelocity:).md)
