getIsFollowingPosition method
- bool alsoFlyToPosition
Checks if the camera is following the current position with optional animation consideration.
Determines whether the map is in follow position mode, with configurable handling of animation phases. Unlike isFollowingPosition which excludes animation phases, this method allows control over whether the "flying to position" animation is considered as part of follow position mode.
Set alsoFlyToPosition to true to include animation phases, or false
to only return true when actively tracking without animation.
Parameters
alsoFlyToPosition: Iftrue, considers the map in follow position mode even during animation to position. Iffalse, only returnstruewhen actively tracking without ongoing animation
Returns
trueif the map is currently following the current position (based onalsoFlyToPositionsetting),falseotherwise
See also:
- isFollowingPosition - Simple check excluding animation phases
- stopFollowingPosition - Deactivate follow position mode
- restoreFollowingPosition - Restore to default auto-zoom follow mode
Implementation
bool getIsFollowingPosition(bool alsoFlyToPosition) {
final OperationResult resultString = objectMethod(
_pointerId,
'MapView',
'isFollowingPosition',
args: alsoFlyToPosition,
);
return resultString['result'];
}