mapAngle property

double get mapAngle

Get the map's angle in degrees.

The angle is between 0 and 360 degrees, where 0 represents north-up alignment.

Returns

The map angle in degrees as a double.

See also:

  • tiltAngle - The tilt angle complementary to view angle.
  • viewAngle - The camera's pitch angle.

Implementation

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

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

Set the map's angle in degrees.

Parameters

  • angle: Angle in degrees (0..360) where 0 represents north.

See also:

  • tiltAngle - The tilt angle complementary to view angle.
  • viewAngle - The camera's pitch angle.

Implementation

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