---
title: "init(_:coordinate:)"
framework: mapkit
role: symbol
role_heading: Initializer
path: "mapkit/marker/init(_:coordinate:)-3bjj6"
---

# init(_:coordinate:)

Creates a marker at the given location.

## Declaration

```swift
@MainActor @preconcurrency init(_ titleResource: LocalizedStringResource, coordinate: CLLocationCoordinate2D) where Label == Text
```

## Parameters

- `titleResource`: The localized string for the title.
- `coordinate`: The coordinate to display the marker at.
