---
title: "init(centerCoordinate:distance:heading:pitch:)"
framework: mapkit
role: symbol
role_heading: Initializer
path: "mapkit/mapcamera/init(centercoordinate:distance:heading:pitch:)"
---

# init(centerCoordinate:distance:heading:pitch:)

Creates a camera using the specified distance, pitch, and heading information.

## Declaration

```swift
init(centerCoordinate: CLLocationCoordinate2D, distance: Double, heading: Double = 0, pitch: Double = 0)
```

## Parameters

- `centerCoordinate`: The map coordinate at the center of the map view.
- `distance`: The distance from the center point of the map to the camera, in meters.
- `heading`: The heading of the camera, in degrees, relative to true North.
- `pitch`: The viewing angle of the camera, in degrees.

## See Also

### Creating a map camera

- [init(_:)](mapkit/mapcamera/init(_:).md)
