Contents

CPPointOfInterest

An object that describes a point of interest on the template’s map and in its scrollable picker.

Declaration

class CPPointOfInterest

Overview

A point of interest describes a geographical location on a map. It also provides supplementary information about the location, such as a title and summary that the template displays in a scrollable picker and on a detail card. A point of interest also provides the buttons the detail card presents to the user as contextual actions.

You provide an array of CPPointOfInterest objects when initializing CPPointOfInterestTemplate, or whenever the visible region of the template’s map changes, by calling the template’s setPointsOfInterest(_:selectedIndex:) method.

CPPointOfInterestTemplate displays a maximum of twelve points of interest.

Topics

Creating a Point of Interest

Managing the Map Annotation

Managing the Picker Item’s Data

Managing the Detail Card’s Data

Managing the Detail Card’s Buttons

Attaching Additional Context

Initializers

Instance Properties

Type Properties

See Also

Creating a Point of Interest Template