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

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

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

## Declaration

```swift
@MainActor @preconcurrency init<S>(_ title: S, coordinate: CLLocationCoordinate2D, anchor: UnitPoint = .center, accessoryAnchor: UnitPoint, @ViewBuilder content: () -> Content) where Label == Text, S : StringProtocol
```

## Parameters

- `title`: The title of the annotation.
- `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.

## See Also

### Creating annotations

- [init(_:coordinate:anchor:accessoryAnchor:content:)](mapkit/annotation/init(_:coordinate:anchor:accessoryanchor:content:)-6rxmn.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)
- [init(coordinate:anchor:content:label:)](mapkit/annotation/init(coordinate:anchor:content:label:).md)
