restoreFollowingPosition method

void restoreFollowingPosition({
  1. 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. If null, restoration occurs instantly. Defaults to null

See also:

Implementation

void restoreFollowingPosition({final GemAnimation? animation}) {
  objectMethod(
    _pointerId,
    'MapView',
    'restoreFollowingPosition',
    args: (animation != null) ? animation : <String, dynamic>{},
  );
}