<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CarPlay",
  "identifier" : "/documentation/CarPlay/CPMapPanel/init(title:sections:buttonConfiguration:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "CarPlay"
    ],
    "preciseIdentifier" : "c:objc(cs)CPMapPanel(im)initWithTitle:sections:buttonConfiguration:"
  },
  "title" : "init(title:sections:buttonConfiguration:)"
}
-->

# init(title:sections:buttonConfiguration:)

Creates and configures a new map panel for display over your navigation app’s map template.

```
init(title: String?, sections: [CPMapPanelSection], buttonConfiguration: CPMapPanelButtonConfiguration?)
```

## Parameters

`title`

The title of the map panel. This title appears at the top of the panel display. The panel stores a copy of the string you provide.

`sections`

The information to display in the panel. Use this parameter to specify route options, charging stations, or other relevant content. If the number of items in this array exceeds the value in the [`maximumPanelItemsCount`](/documentation/CarPlay/CPPanel/maximumPanelItemsCount) property, the map panel ignores any array items past the maximum. The system stores a copy of the array you provide.

`buttonConfiguration`

Optional buttons and travel estimate data to display at the bottom of the panel. Specify `nil` if you don’t want to include any buttons in the panel.

## Return Value

A new map panel instance.

---

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)