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

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

Creates an annotation that displays a view at a coordinate on the map.

## Declaration

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

## Parameters

- `coordinate`: The coordinate position of the annotation.
- `anchor`: A doc://com.apple.documentation/documentation/SwiftUI/UnitPoint value that indicates how to position the content around the provided coordinate.
- `accessoryAnchor`: A doc://com.apple.documentation/documentation/SwiftUI/UnitPoint value that indicates how to place accessories around the provided content.
- `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(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)
- [init(coordinate:anchor:content:label:)](mapkit/annotation/init(coordinate:anchor:content:label:).md)
