setRotationAnimated(degrees, animated)
Changes the map’s rotation setting to the number of specified degrees.
Declaration
setRotationAnimated(degrees: number, animated?: boolean): Map | undefined;Parameters
- degrees:
The map’s rotation, in degrees.
- animate:
A Boolean value that determines whether the rotation change animates. The default value is
true.
Return Value
Returns the map object.
Discussion
By default, MapKit JS animates the rotation change. This function changes the map’s rotation even if isRotationEnabled is false.
See Also
Manipulating the visible portion of the map
centersetCenterAnimated(coordinate, animated)regionsetRegionAnimated(region, animated)rotationvisibleMapRectsetVisibleMapRectAnimated(mapRect, animated)cameraBoundarysetCameraBoundaryAnimated(mapRect, animated)CameraBoundaryDescriptioncameraDistancesetCameraDistanceAnimated(distance, animated)cameraZoomRangesetCameraZoomRangeAnimated(cameraZoomRange, animated)