mapAngle property
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:
Implementation
double get mapAngle {
final OperationResult resultString = objectMethod(
_pointerId,
'MapViewPreferences',
'getRotationAngle',
dependencyId: _mapPointerId,
);
return resultString['result'];
}
Set the map's angle in degrees.
Parameters
angle: Angle in degrees (0..360) where 0 represents north.
See also:
Implementation
set mapAngle(final double angle) {
objectMethod(
_pointerId,
'MapViewPreferences',
'setRotationAngle',
args: angle,
dependencyId: _mapPointerId,
);
}