mapRotationMode property

(FollowPositionMapRotationMode, double) get mapRotationMode

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

See also:

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'],
  );
}