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

# mapTemplate(_:didUpdateZoomGestureWithCenter:scale:velocity:)

Tells the delegate that a person is zooming on the map.

## Declaration

```swift
optional func mapTemplate(_ mapTemplate: CPMapTemplate, didUpdateZoomGestureWithCenter center: CGPoint, scale: CGFloat, velocity: CGFloat)
```

## Parameters

- `mapTemplate`: The doc://com.apple.carplay/documentation/CarPlay/CPMapTemplate the gesture applies to.
- `center`: A CGPoint that indicates the center point of the zoom.
- `scale`: A CGFloat that indicates the scale factor relative to the zoom gesture in screen coordinates.
- `velocity`: The velocity of the zoom gesture in scale factor per second.
