Instance Property

isRotationAvailable

A Boolean value that indicates if map rotation is available.

Declaration

attribute Boolean isRotationAvailable;

Discussion

MapKit JS determines whether it is possible to rotate the map, and sets isRotationAvailable to true or false. When the value is true, users can rotate a map and any labels on the map will remain horizontal.

The value for isRotationAvailable is:

true

When the map is rendered by the client, such as by browsers that support WebGL.

false

When the Apple Maps server renders the map with a grid of image tiles, or when you implement your own tile overlays (addTileOverlay).

When isRotationAvailable is false, isRotationEnabled is always false and rotation is always 0.

See Also

Accessing Interaction Properties

isRotationEnabled

A Boolean value that determines whether the user may rotate the map using the compass control or a rotate gesture.

isScrollEnabled

A Boolean value that determines whether the user may scroll the map with a pointing device or with gestures on a touchscreen.

isZoomEnabled

A Boolean value that determines whether the user may zoom in and out on the map using pinch gestures or the zoom control.