setCameraZoomRangeAnimated(cameraZoomRange, animated)
Changes the map’s camera zoom range with an animated transition.
Declaration
setCameraZoomRangeAnimated(
cameraZoomRange: CameraZoomRange,
animated?: boolean,
): Map;Parameters
- cameraZoomRange:
A Camerazoomrange instance, which is an object containing the Mincameradistance and Maxcameradistance properties.
- animate:
A Boolean value that determines whether MapKit JS animates the visible area change. The default value is
true.
Mentioned in
Return Value
Returns the containing map instance object.
Discussion
By default, the change of zoom range animates.
See Also
Manipulating the visible portion of the map
centersetCenterAnimated(coordinate, animated)regionsetRegionAnimated(region, animated)rotationsetRotationAnimated(degrees, animated)visibleMapRectsetVisibleMapRectAnimated(mapRect, animated)cameraBoundarysetCameraBoundaryAnimated(mapRect, animated)CameraBoundaryDescriptioncameraDistancesetCameraDistanceAnimated(distance, animated)cameraZoomRange