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

# mapTemplate(_:displayStyleFor:)

Asks the delegate for the maneuver’s display style.

## Declaration

```swift
optional func mapTemplate(_ mapTemplate: CPMapTemplate, displayStyleFor maneuver: CPManeuver) -> CPManeuverDisplayStyle
```

## Parameters

- `mapTemplate`: The current map template.
- `maneuver`: The maneuver that the system applies the display style to.

## Return Value

Return Value A display style that determines the visual layout for the maneuver.

## Discussion

Discussion The display style only applies to the second maneuver that you provide in the navigation session’s upcomingManeuvers array.

## See Also

### Setting the Display Style

- [CPManeuverDisplayStyle](carplay/cpmaneuverdisplaystyle.md)
