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

# mapTemplate(_:pitchWithCenter:)

Called when a pitch gesture changes. May not be called when connected to some CarPlay systems

## Declaration

```swift
optional func mapTemplate(_ mapTemplate: CPMapTemplate, pitchWithCenter center: CGPoint)
```

## 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 pitch gesture.

## Discussion

Discussion Tells the delegate that a person is pitching the map.
