Contents

CPMapPanelSection

A single section of a map panel that you fill with a title and one or more items.

Declaration

class CPMapPanelSection

Overview

The CPMapPanelSection class organizes a single section of content in a CPMapPanel interface. In a navigation app, you use map panels to display relevant information such as route options or the location of charging stations on top of your custom map. Section objects manage one or more related items you want to display. For example, you might use one section to display upcoming charging stations and a different section to display route choices.

Create a CPMapPanelSection object and configure it with the section title and a CPMapPanelItem object for each item you want to display. Add the section to your CPMapPanel object before showing the panel from your map template. If you modify a section after the panel is visible, the system updates the section’s contents in your CarPlay interface.

Topics

Initializers

Instance Properties