setMapRotationMode method

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

Set map rotation mode in follow position.

Parameters

  • IN mode Map rotation mode.
  • IN angle The fixed rotation angle for FollowPositionMapRotationMode.fixed.
  • IN objectFollowMap The position tracker object orientation will follow map view rotation.

If the position tracker object orientation will follow map view rotation, all views using the same tracking object will see the object update.

Throws

  • An exception if it fails.

Implementation

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