getIsFollowingPosition method

bool getIsFollowingPosition(
  1. bool alsoFlyToPosition
)

Returns true if the camera is following the current real/simulated position and false otherwise.

Parameters

  • IN alsoFlyToPosition If true, considers the map to be in follow position mode even when animating towards a position ("flying"). If false, the map is considered to be in follow position mode only when it is actively tracking the current position without any ongoing animation.

Returns

  • True if the map is currently following the current position.

Implementation

bool getIsFollowingPosition(bool alsoFlyToPosition) {
  final OperationResult resultString = objectMethod(
      _pointerId, 'MapView', 'isFollowingPosition',
      args: alsoFlyToPosition);

  return resultString['result'];
}