---
title: "mapTemplate(_:rotationDidEndWithVelocity:)"
framework: carplay
role: symbol
role_heading: Instance Method
path: "carplay/cpmaptemplatedelegate/maptemplate(_:rotationdidendwithvelocity:)"
---

# mapTemplate(_:rotationDidEndWithVelocity:)

Tells the delegate that a person stopped rotating the map.

## Declaration

```swift
optional func mapTemplate(_ mapTemplate: CPMapTemplate, rotationDidEndWithVelocity velocity: CGFloat)
```

## Parameters

- `mapTemplate`: The doc://com.apple.carplay/documentation/CarPlay/CPMapTemplate the gesture applies to.
- `velocity`: The velocity of the rotation gesture in radians per second.
