<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CarPlay",
  "identifier" : "/documentation/CarPlay/CPMapTemplateDelegate/mapTemplate(_:didRotateWithCenter:rotation:velocity:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "CarPlay"
    ],
    "preciseIdentifier" : "c:objc(pl)CPMapTemplateDelegate(im)mapTemplate:didRotateWithCenter:rotation:velocity:"
  },
  "title" : "mapTemplate(_:didRotateWithCenter:rotation:velocity:)"
}
-->

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

Tells the delegate that a person is rotating the map.

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

## Parameters

`mapTemplate`

The [`CPMapTemplate`](/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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)