<!--
{
  "availability" : [
    "MapKit JS: 5.23.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKitJS",
  "identifier" : "/documentation/MapKitJS/CameraZoomRange/CameraZoomRangeConstructor2",
  "metadataVersion" : "0.1.0",
  "role" : "Constructor",
  "symbol" : {
    "kind" : "Constructor",
    "modules" : [
      "MapKit JS"
    ],
    "preciseIdentifier" : "instctr/mapkit.CameraZoomRange/CameraZoomRangeConstructor2"
  },
  "title" : "new CameraZoomRange(min, max)"
}
-->

# new CameraZoomRange(min, max)

Creates an instance of a camera zoom range object with the specified numeric arguments that specify minimum and maximum camera distances.

```
constructor(min: number, max: number);
```

## Discussion

Calling the constructor with minimal camera distance and maximum camera distance creates a [`CameraZoomRange`](/documentation/MapKitJS/CameraZoomRange) instance that constrains the camera.

Both `minCameraDistance` and `maxCameraDistance` must be greater than or equal to `0.` The `minCameraDistance` must be less than or equal to the `maxCameraDistance`.

---

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)