isRotationAvailable
A Boolean value that indicates whether map rotation is available.
Declaration
get isRotationAvailable(): boolean | undefined;
set isRotationAvailable(_: boolean | undefined);Discussion
MapKit JS determines whether it’s possible to rotate the map, and sets isRotationAvailable to true or false. When the value is true, users can rotate the map, and any labels on the map remain horizontal.
The value for isRotationAvailable is:
trueWhen the client renders the map, such as by browsers that support WebGL.
falseWhen the Apple Maps server renders the map with a grid of image tiles, or when you implement your own tile overlays (addTileOverlay(tileOverlay)).
When isRotationAvailable is false, isRotationEnabled is always false and rotation is always 0.