---
title: "init(primaryAction:symbolButton:travelEstimates:)"
framework: carplay
role: symbol
role_heading: Initializer
path: "carplay/cpmappanelbuttonconfiguration/init(primaryaction:symbolbutton:travelestimates:)"
---

# init(primaryAction:symbolButton:travelEstimates:)

Initializes a map panel button configuration with a primary action, optional travel estimates, and an optional secondary button.

## Declaration

```swift
init(primaryAction: CPTextButton, symbolButton: CPButton?, travelEstimates: CPTravelEstimates?)
```

## Parameters

- `primaryAction`: The primary text button for the panel.
- `symbolButton`: An optional secondary button. Note: only the image property of this button is used. Any title provided will be dropped.
- `travelEstimates`: Optional travel estimates to display alongside the primary button.

## Return Value

Return Value A new @c CPMapPanelButtonConfiguration instance.
