setMapRotationMode method

void setMapRotationMode(
  1. FollowPositionMapRotationMode mode, {
  2. double mapAngle = 0,
  3. bool objectFollowMap = true,
})

Configure how the map rotates during follow position mode

Controls whether the map rotates based on device heading, compass sensor, or a fixed angle. The position tracker icon's rotation can optionally follow the map rotation.

When objectFollowMap is true, all views using the same tracking object will see the rotation update.

Parameters

See also:

Implementation

void setMapRotationMode(
  final FollowPositionMapRotationMode mode, {
  final double mapAngle = 0,
  final bool objectFollowMap = true,
}) {
  objectMethod(
    pointerId,
    'FollowPositionPreferences',
    'setMapRotationMode',
    args: <String, Object>{
      'mode': mode.id,
      'angle': mapAngle,
      'objectFollowMap': objectFollowMap,
    },
    dependencyId: _mapPointerId,
  );
}