CarPlayMapViewController

@available(iOS 12.0, *)
public class CarPlayMapViewController : UIViewController
extension CarPlayMapViewController: StyleManagerDelegate
extension CarPlayMapViewController: NavigationMapViewDelegate

CarPlayMapViewController is responsible for administering the Mapbox map, the interface styles and the map template buttons to display on CarPlay.

  • Creates a new pan map button for the CarPlay map view controller.

    Declaration

    Swift

    @discardableResult
    public func panningInterfaceDisplayButton(for mapTemplate: CPMapTemplate) -> CPMapButton

    Parameters

    mapTemplate

    The map template available to the pan map button for display.

    Return Value

    CPMapButton instance.

  • Creates a new close button to dismiss the visible panning buttons on the map.

    Declaration

    Swift

    @discardableResult
    public func panningInterfaceDismissalButton(for mapTemplate: CPMapTemplate) -> CPMapButton

    Parameters

    mapTemplate

    The map template available to the pan map button for display.

    Return Value

    CPMapButton instance.