<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKit",
  "identifier" : "/documentation/MapKit/MapCamera/init(centerCoordinate:distance:heading:pitch:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "MapKit",
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:15_MapKit_SwiftUI0A6CameraV16centerCoordinate8distance7heading5pitchACSo22CLLocationCoordinate2DV_S3dtcfc"
  },
  "title" : "init(centerCoordinate:distance:heading:pitch:)"
}
-->

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

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

```
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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)