stopFollowingPosition method
- bool restoreCameraMode = false,
Deactivates follow position mode, stopping position tracking.
Stops the camera from automatically tracking and following the device's real or simulated position. After calling this method, the map view remains stationary at its current position until manually moved or a new centering operation is initiated.
Set restoreCameraMode to true to additionally reset the camera to its
default zoom level and view angle used in follow position mode, providing
a consistent viewing state.
Parameters
restoreCameraMode: Iftrue, resets zoom level and view angle to follow position defaults. Iffalse, maintains current camera settings. Defaults tofalse
See also:
- isFollowingPosition - Check if follow mode is active
- getIsFollowingPosition - Check follow status with animation control
- restoreFollowingPosition - Restore to default auto-zoom follow mode
Implementation
void stopFollowingPosition({bool restoreCameraMode = false}) {
objectMethod(
_pointerId,
'MapView',
'stopFollowingPosition',
args: restoreCameraMode,
);
}