CPMapPanelItem
A type that manages the waypoint, route, trip, and other information you display in a map panel.
Declaration
class CPMapPanelItemOverview
A CPMapPanelItem object stores navigation-related information and manages interactions with that information. When creating a CPMapPanel to display over your custom map, configure it with one or more items with the information you want to display. Use items to display information about:
Trip details for a particular journey Travel estimates for a trip Route choices between a start and end point Route-related details such as costs and consumption metrics Charging station connection details Navigation waypoints
Create one or more CPMapPanelItem objects and add them to a CPMapPanelSection. You can add multiple items to a section and each item can contain different information. For example, you might include one item with the trip details and additional items to present route-specific options. Provide a handler with your item if you want to respond when someone taps or selects the item.
Each type of item displays different information from the map panel interface. For example, an item you initialize with a CPTrip object displays the trip’s destination and origin plus the number of route choices. When configuring a section, you might include multiple items of different types to present a complete view of the trip.