---
title: cameraDistance
framework: mapkitjs
role: symbol
role_heading: Instance Property
path: mapkitjs/map/cameradistance
---

# cameraDistance

The altitude of the camera relative to the elevation of the center of the map.

## Declaration

```data
get cameraDistance(): number;
set cameraDistance(value: number);
```

## Mentioned in

MapKit JS 5

## Discussion

Discussion This property sets the altitude of the camera relative to the elevation of the center of the map. The camera distance is a value in meters; it must be greater than or equal to 0.

## See Also

### Manipulating the visible portion of the map

- [center](mapkitjs/map/center.md)
- [setCenterAnimated(coordinate, animated)](mapkitjs/map/setcenteranimated.md)
- [region](mapkitjs/map/region.md)
- [setRegionAnimated(region, animated)](mapkitjs/map/setregionanimated.md)
- [rotation](mapkitjs/map/rotation.md)
- [setRotationAnimated(degrees, animated)](mapkitjs/map/setrotationanimated.md)
- [visibleMapRect](mapkitjs/map/visiblemaprect.md)
- [setVisibleMapRectAnimated(mapRect, animated)](mapkitjs/map/setvisiblemaprectanimated.md)
- [cameraBoundary](mapkitjs/map/cameraboundary.md)
- [setCameraBoundaryAnimated(cameraBoundary, animated)](mapkitjs/map/setcameraboundaryanimated.md)
- [CameraBoundaryDescription](mapkitjs/cameraboundarydescription.md)
- [setCameraDistanceAnimated(distance, animated)](mapkitjs/map/setcameradistanceanimated.md)
- [cameraZoomRange](mapkitjs/map/camerazoomrange.md)
- [setCameraZoomRangeAnimated(cameraZoomRange, animated)](mapkitjs/map/setcamerazoomrangeanimated.md)
