mapRotationMode property
Current map rotation mode and fixed angle during follow position
Returns the rotation mode (device heading, compass, or fixed) along with the fixed rotation angle. The angle is only relevant when mode is FollowPositionMapRotationMode.fixed.
Returns
- A tuple containing the FollowPositionMapRotationMode and the fixed rotation angle in degrees (0-360)
See also:
- setMapRotationMode - Configure map rotation behavior during follow position
Implementation
(FollowPositionMapRotationMode, double) get mapRotationMode {
final OperationResult resultString = objectMethod(
pointerId,
'FollowPositionPreferences',
'getMapRotationMode',
dependencyId: _mapPointerId,
);
return (
FollowPositionMapRotationMode.values[((resultString['result']['first'])
as double)
.toInt()],
resultString['result']['second'],
);
}