Contents

init(primaryAction:symbolButton:travelEstimates:)

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

Declaration

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

A new @c CPMapPanelButtonConfiguration instance.