setRegionAnimated(region, animated)
Changes the map’s region to the provided region, with optional animation.
Declaration
setRegionAnimated(region: CoordinateRegion, animated?: boolean): Map;Parameters
- region:
A new Region for the map to display.
- animate:
A Boolean value that determines whether MapKit JS animates the region change. The default value is
true.
Mentioned in
Return Value
Returns the map object.
Discussion
By default, MapKit JS animates the change.
See Also
Manipulating the visible portion of the map
centersetCenterAnimated(coordinate, animated)regionrotationsetRotationAnimated(degrees, animated)visibleMapRectsetVisibleMapRectAnimated(mapRect, animated)cameraBoundarysetCameraBoundaryAnimated(mapRect, animated)CameraBoundaryDescriptioncameraDistancesetCameraDistanceAnimated(distance, animated)cameraZoomRangesetCameraZoomRangeAnimated(cameraZoomRange, animated)