---
title: "mapTemplateDidCancelNavigation(_:)"
framework: carplay
role: symbol
role_heading: Instance Method
path: "carplay/cpmaptemplatedelegate/maptemplatedidcancelnavigation(_:)"
---

# mapTemplateDidCancelNavigation(_:)

Tells the delegate that the system canceled the navigation.

## Declaration

```swift
optional func mapTemplateDidCancelNavigation(_ mapTemplate: CPMapTemplate)
```

## Parameters

- `mapTemplate`: The current map template.

## See Also

### Handling Navigation Events

- [mapTemplate(_:selectedPreviewFor:using:)](carplay/cpmaptemplatedelegate/maptemplate(_:selectedpreviewfor:using:).md)
- [mapTemplate(_:startedTrip:using:)](carplay/cpmaptemplatedelegate/maptemplate(_:startedtrip:using:).md)
- [mapTemplateShouldProvideNavigationMetadata(_:)](carplay/cpmaptemplatedelegate/maptemplateshouldprovidenavigationmetadata(_:).md)
