setCameraBoundaryAnimated(mapRect, animated)
Changes the map’s camera boundary with an animated transition.
Declaration
setCameraBoundaryAnimated(
mapRect: null | CoordinateRegion | MapRect,
animated?: boolean,
): Map;Parameters
- mapRect:
This can be an instance of Coordinateregion or Maprect.
- 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 map object.
Discussion
By default, the change of boundary animates.
See Also
Manipulating the visible portion of the map
centersetCenterAnimated(coordinate, animated)regionsetRegionAnimated(region, animated)rotationsetRotationAnimated(degrees, animated)visibleMapRectsetVisibleMapRectAnimated(mapRect, animated)cameraBoundaryCameraBoundaryDescriptioncameraDistancesetCameraDistanceAnimated(distance, animated)cameraZoomRangesetCameraZoomRangeAnimated(cameraZoomRange, animated)