mapAngle property

double get mapAngle

The map's angle in degrees. Is between 0 and 360 degrees, where 0 represents north-up alignment.

Returns

  • The map angle

Throws

  • An exception if it fails.

Implementation

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

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

The map's angle in degrees. Must be between 0 and 360 degrees, where 0 represents north.

Parameters

  • IN angle The map angle in degrees.

Throws

  • An exception if it fails

Implementation

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