startFollowingPosition method

void startFollowingPosition({
  1. GemAnimation? animation,
  2. int zoomLevel = -1,
  3. double? viewAngle,
  4. MapSceneObject? positionObj,
})

Start following the current position.

Requires automatic map rendering. Disables the cursor if it is enabled.

Parameters

  • IN animation Specifies the animation to be used by the operation.
  • IN zoomLevel Zoom level where the animation stops. (Use -1 for automatic selection)
  • IN viewAngle Map view angle. Default is std::numeric_limits::max() meaning use default specified.
  • IN positionObj Navigation arrow scene object. If empty, a default SDK navigation arrow is used.
  • IN trackMethod The method is called by the camera every time a tracked object position changes (optional).

Throws

  • An exception if it fails.

Implementation

void startFollowingPosition({
  final GemAnimation? animation,
  final int zoomLevel = -1,
  final double? viewAngle,
  final MapSceneObject? positionObj,
}) {
  objectMethod(
    _pointerId,
    'MapView',
    'startFollowingPosition',
    args: <String, Object>{
      if (animation != null) 'animation': animation,
      'zoomLevel': zoomLevel,
      if (viewAngle != null) 'viewAngle': viewAngle,
      if (positionObj != null) 'positionObj': positionObj,
    },
  );
}