---
title: "pointOfInterestTemplate(_:didChangeMapRegion:)"
framework: carplay
role: symbol
role_heading: Instance Method
path: "carplay/cppointofinteresttemplatedelegate/pointofinteresttemplate(_:didchangemapregion:)"
---

# pointOfInterestTemplate(_:didChangeMapRegion:)

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

## Declaration

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

## Parameters

- `region`: The map’s new visible region.

## Discussion

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.
