---
title: "init(mapTemplateWaypoint:image:handler:)"
framework: carplay
role: symbol
role_heading: Initializer
path: "carplay/cpmappanelitem/init(maptemplatewaypoint:image:handler:)"
---

# init(mapTemplateWaypoint:image:handler:)

Initializes a map template item wrapping a @c CPMapTemplateWaypoint.

## Declaration

```swift
init(mapTemplateWaypoint: CPMapTemplateWaypoint, image: UIImage?, handler: ((CPMapPanelItem, @escaping () -> Void) -> Void)? = nil)
```
