---
title: "init(coordinateRegion:interactionModes:showsUserLocation:userTrackingMode:annotationItems:annotationContent:)"
framework: mapkit
role: symbol
role_heading: Initializer
path: "mapkit/map/init(coordinateregion:interactionmodes:showsuserlocation:usertrackingmode:annotationitems:annotationcontent:)"
---

# init(coordinateRegion:interactionModes:showsUserLocation:userTrackingMode:annotationItems:annotationContent:)

Creates a map that displays a coordinate region with annotations, and optionally configures available interactions, user location, and tracking behavior.

## Declaration

```swift
@MainActor @preconcurrency init<Items, Annotation>(coordinateRegion: Binding<MKCoordinateRegion>, interactionModes: MapInteractionModes = .all, showsUserLocation: Bool = false, userTrackingMode: Binding<MapUserTrackingMode>? = nil, annotationItems: Items, annotationContent: @escaping (Items.Element) -> Annotation) where Content == _DefaultAnnotatedMapContent<Items>, Items : RandomAccessCollection, Annotation : MapAnnotationProtocol, Items.Element : Identifiable
```

## Parameters

- `coordinateRegion`: A binding to a region that corresponds to an area to display on the map.
- `interactionModes`: An enumeration that indicates the user interactions to which the map responds.
- `showsUserLocation`: A Boolean value that indicates the option to display a person’s location on a map. The map displays the location only if they authorized the app to access their location.
- `userTrackingMode`: A binding to a tracking mode that determines how the map responds to location updates.
- `annotationItems`: The collection of data that the view uses to display annotations.
- `annotationContent`: A closure that produces the annotation content.

## See Also

### Initializers

- [init(coordinateRegion:interactionModes:showsUserLocation:userTrackingMode:)](mapkit/map/init(coordinateregion:interactionmodes:showsuserlocation:usertrackingmode:).md)
- [init(mapRect:interactionModes:showsUserLocation:userTrackingMode:)](mapkit/map/init(maprect:interactionmodes:showsuserlocation:usertrackingmode:).md)
- [init(mapRect:interactionModes:showsUserLocation:userTrackingMode:annotationItems:annotationContent:)](mapkit/map/init(maprect:interactionmodes:showsuserlocation:usertrackingmode:annotationitems:annotationcontent:).md)
