<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 13.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CarPlay",
  "identifier" : "/documentation/CarPlay/CPMapTemplateDelegate/mapTemplate(_:displayStyleFor:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "CarPlay"
    ],
    "preciseIdentifier" : "c:objc(pl)CPMapTemplateDelegate(im)mapTemplate:displayStyleForManeuver:"
  },
  "title" : "mapTemplate(_:displayStyleFor:)"
}
-->

# mapTemplate(_:displayStyleFor:)

Asks the delegate for the maneuver’s display style.

```
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

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

## Discussion

The display style only applies to the second maneuver that you provide in the navigation session’s [`upcomingManeuvers`](/documentation/CarPlay/CPNavigationSession/upcomingManeuvers) array.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)