---
title: "init(coordinate:anchor:content:label:)"
framework: mapkit
role: symbol
role_heading: Initializer
path: "mapkit/annotation/init(coordinate:anchor:content:label:)"
---

# init(coordinate:anchor:content:label:)

Creates an annotation that displays a view on the map using coordinates, anchor location, view, and label you provide.

## Declaration

```swift
@MainActor @preconcurrency init(coordinate: CLLocationCoordinate2D, anchor: UnitPoint = .center, @ViewBuilder content: () -> Content, @ViewBuilder label: () -> Label)
```

## Parameters

- `coordinate`: The coordinate position of the annotation.
- `anchor`: How to place the content around the provided coordinate.
- `content`: The view to place on the map.
- `label`: The label for the annotation, including a title, and optional subtitle.

## See Also

### Creating annotations

- [init(_:coordinate:anchor:accessoryAnchor:content:)](mapkit/annotation/init(_:coordinate:anchor:accessoryanchor:content:)-6rxmn.md)
- [init(_:coordinate:anchor:accessoryAnchor:content:)](mapkit/annotation/init(_:coordinate:anchor:accessoryanchor:content:)-14m3t.md)
- [init(coordinate:anchor:accessoryAnchor:content:label:)](mapkit/annotation/init(coordinate:anchor:accessoryanchor:content:label:).md)
- [init(item:anchor:accessoryAnchor:content:)](mapkit/annotation/init(item:anchor:accessoryanchor:content:).md)
- [init(_:coordinate:anchor:content:)](mapkit/annotation/init(_:coordinate:anchor:content:)-2w242.md)
- [init(_:coordinate:anchor:content:)](mapkit/annotation/init(_:coordinate:anchor:content:)-6wnoh.md)
