---
title: MapCamera
framework: mapkit
role: symbol
role_heading: Structure
path: mapkit/mapcamera
---

# MapCamera

Defines a virtual viewpoint above the map surface.

## Declaration

```swift
struct MapCamera
```

## Overview

Overview MapCamera allows you to specify the viewpoint of a Map, as well as affect how MapKit presents the map to the user. To create a map view with a 3D perspective, MapCamera takes input from the camera and device: The location of the camera on the map. The compass heading to indicate the camera’s viewing direction. The pitch of the camera relative to the map perpendicular. The camera’s distance from the target point.

## Topics

### Creating a map camera

- [init(_:)](mapkit/mapcamera/init(_:).md)
- [init(centerCoordinate:distance:heading:pitch:)](mapkit/mapcamera/init(centercoordinate:distance:heading:pitch:).md)

### Accessing the camera properties

- [centerCoordinate](mapkit/mapcamera/centercoordinate.md)
- [distance](mapkit/mapcamera/distance.md)
- [heading](mapkit/mapcamera/heading.md)
- [pitch](mapkit/mapcamera/pitch.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)

## See Also

### Map customization

- [MapCameraBounds](mapkit/mapcamerabounds.md)
- [MapCameraPosition](mapkit/mapcameraposition.md)
- [MapCameraUpdateContext](mapkit/mapcameraupdatecontext.md)
- [MapCameraUpdateFrequency](mapkit/mapcameraupdatefrequency.md)
