<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CarPlay",
  "identifier" : "/documentation/CarPlay/CPMapPanelButtonConfiguration",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "CarPlay"
    ],
    "preciseIdentifier" : "c:objc(cs)CPMapPanelButtonConfiguration"
  },
  "title" : "CPMapPanelButtonConfiguration"
}
-->

# CPMapPanelButtonConfiguration

A type that manages the action buttons and travel estimates in a map panel.

```
class CPMapPanelButtonConfiguration
```

## Overview

A `CPMapPanelbuttonConfiguration` object specifies the controls and details to display at the bottom of a [`CPMapPanel`](/documentation/CarPlay/CPMapPanel).
Create this type when to add a primary action button and an optional secondary action button to the bottom of the panel. These
buttons are separate from your map panel’s section content and remain pinned to the bottom of the panel during scrolling. You can
also use this type to specify travel estimates you want to keep pinned to the bottom of the panel.

Instantiate this type and specify it with the rest of the panel content when initializing your [`CPMapPanel`](/documentation/CarPlay/CPMapPanel) object. You can’t
change the button configuration details after you create your map panel.

## Topics

### Initializers

[`init(primaryAction: CPTextButton, secondaryButton: CPButton?, travelEstimates: CPTravelEstimates)`](/documentation/CarPlay/CPMapPanelButtonConfiguration/init(primaryAction:secondaryButton:travelEstimates:))

Initializes the map panel button configuration with the specified action buttons and travel estimates.

### Instance Properties

[`var secondaryButton: CPButton?`](/documentation/CarPlay/CPMapPanelButtonConfiguration/secondaryButton)

The optional button you use to perform a secondary action.

[`var travelEstimates: CPTravelEstimates?`](/documentation/CarPlay/CPMapPanelButtonConfiguration/travelEstimates)

The travel estimates to display alongside the action buttons.

## Relationships

### Conforms To

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`NSCoding`](/documentation/Foundation/NSCoding)

[`CVarArg`](/documentation/Swift/CVarArg)

[`Hashable`](/documentation/Swift/Hashable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

[`Equatable`](/documentation/Swift/Equatable)

### Inherits From

[`CPPanelButtonConfiguration`](/documentation/CarPlay/CPPanelButtonConfiguration)

---

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)