setMapRotationMode method

void setMapRotationMode(
  1. FollowPositionMapRotationMode mode, {
  2. @Deprecated('Use mapAngle instead. This parameter will be removed in a future release. Name changed for consistency.') double? angle,
  3. double mapAngle = 0,
  4. 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, {
  @Deprecated(
      'Use mapAngle instead. This parameter will be removed in a future release. Name changed for consistency.')
  final double? angle,
  final double mapAngle = 0,
  final bool objectFollowMap = true,
}) {
  objectMethod(
    _pointerId,
    'FollowPositionPreferences',
    'setMapRotationMode',
    args: <String, Object>{
      'mode': mode.id,
      'angle': angle ?? mapAngle,
      'objectFollowMap': objectFollowMap,
    },
    dependencyId: _mapPointerId,
  );
}