setMapRotationMode method

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

Set map rotation mode in follow position.

Parameters

  • IN mode Map rotation mode.
  • IN mapAngle The fixed map rotation angle for FollowPositionMapRotationMode.fixed. Must be between 0 and 360 degrees, where 0 represents north-up alignment.
  • 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.

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,
  );
}