rotationAngle property

double get rotationAngle

Get map rotation angle in degrees relative to north-south axis.

The value of 0 corresponds to north-up alignment.

Returns

  • The rotation angle

Throws

  • An exception if it fails.

Implementation

double get rotationAngle {
  final OperationResult resultString = objectMethod(
    _pointerId,
    'MapViewPreferences',
    'getRotationAngle',
  );

  return resultString['result'];
}
set rotationAngle (double rotationAngle)

Set the map rotation angle in degrees relative to north-south axis.

Parameters

  • IN angle The rotation angle in degrees.

Throws

  • An exception if it fails

Implementation

set rotationAngle(final double rotationAngle) {
  objectMethod(
    _pointerId,
    'MapViewPreferences',
    'setRotationAngle',
    args: rotationAngle,
  );
}