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

# mapTemplate(_:didEndZoomGestureWithVelocity:)

Tells the delegate that a person stopped zooming the map.

## Declaration

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

## Parameters

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