Contents

pointOfInterestTemplate(_:didChangeMapRegion:)

Tells the delegate about changes to the visible region of the template’s map.

Declaration

func pointOfInterestTemplate(_ pointOfInterestTemplate: CPPointOfInterestTemplate, didChangeMapRegion region: MKCoordinateRegion)

Parameters

  • region:

    The map’s new visible region.

Discussion

CarPlay calls this method whenever the user pans the template’s map and its visible region changes. In response, re-evaluate which points of interest are relevant to the new region and, if necessary, call setPointsOfInterest(_:selectedIndex:) to update the template.