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

# mapTemplate(_:didRotateWithCenter:rotation:velocity:)

Tells the delegate that a person is rotating the map.

## Declaration

```swift
optional func mapTemplate(_ mapTemplate: CPMapTemplate, didRotateWithCenter center: CGPoint, rotation: CGFloat, velocity: CGFloat)
```

## Parameters

- `mapTemplate`: The doc://com.apple.carplay/documentation/CarPlay/CPMapTemplate the gesture applies to.
- `center`: A CGPoint that indicates the center between two fingers performing the rotation gesture.
- `rotation`: A CGFloat that indicates the rotation of the gesture in radians.
- `velocity`: The velocity of the rotation gesture in radians per second.
