---
title: "new CameraZoomRange(min, max)"
framework: mapkitjs
role: symbol
role_heading: Constructor
path: mapkitjs/camerazoomrange/camerazoomrangeconstructor2
---

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

## Declaration

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

## Discussion

Discussion Calling the constructor with minimal camera distance and maximum camera distance creates a 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.

## See Also

### Defining a zoom range

- [new CameraZoomRange()](mapkitjs/camerazoomrange/camerazoomrangeconstructor.md)
- [new CameraZoomRange(rangeParams)](mapkitjs/camerazoomrange/camerazoomrangeconstructor1.md)
