isFollowingPosition property
Checks if the camera is actively following the current position.
Returns true when the map is in follow position mode, tracking the device's
real or simulated position. Returns false when position tracking is inactive.
This getter considers the camera to be following only when it is actively
tracking the position, excluding animation phases ("flying" to position).
Use getIsFollowingPosition with the alsoFlyToPosition parameter for more
control over this distinction.
Follow position mode is activated using startFollowingPosition and can be stopped with stopFollowingPosition.
See also:
- getIsFollowingPosition - Check follow status with animation control
- stopFollowingPosition - Deactivate follow position mode
- isFollowingPositionTouchHandlerModified - Check if user adjusted follow mode
- isDefaultFollowingPosition - Check if in default auto-zoom follow mode
Implementation
bool get isFollowingPosition {
final OperationResult resultString = objectMethod(
_pointerId,
'MapView',
'isFollowingPosition',
args: true,
);
return resultString['result'];
}