restoreFollowingPosition method
- GemAnimation? animation,
Restores follow position mode to its default auto-zoom configuration.
Transitions from a manually adjusted follow position mode (where the camera maintains a fixed relative position set by user gestures) back to the default auto-zoom mode. In default mode, the camera automatically adjusts zoom and angle to provide optimal visibility while tracking position.
This is only effective when follow position mode is active and has been manually adjusted by user input. Use isFollowingPositionTouchHandlerModified to check if follow mode has been adjusted.
Parameters
animation: Animation settings for the transition. Ifnull, restoration occurs instantly. Defaults tonull
See also:
- isFollowingPositionTouchHandlerModified - Check if follow mode is adjusted
- isDefaultFollowingPosition - Check if in default follow mode
- stopFollowingPosition - Deactivate follow position mode entirely
Implementation
void restoreFollowingPosition({final GemAnimation? animation}) {
objectMethod(
_pointerId,
'MapView',
'restoreFollowingPosition',
args: (animation != null) ? animation : <String, dynamic>{},
);
}