init(primaryAction:secondaryButton:travelEstimates:)
Initializes a map panel button configuration with a primary action, optional travel estimates, and an optional secondary button.
Declaration
init(primaryAction: CPTextButton, secondaryButton: CPButton?, travelEstimates: CPTravelEstimates)Parameters
- primaryAction:
The primary text button for the panel.
- secondaryButton:
An optional secondary button. Note: only the image property of this button is used. Any title provided will be dropped.
- travelEstimates:
The travel estimates to display alongside the primary button.
Return Value
A new @c CPMapPanelButtonConfiguration instance.