setCameraRelativeToTarget method

void setCameraRelativeToTarget(
  1. Coordinates targetCoords,
  2. Point3d targetHeadingPitchRollDeg,
  3. Point3d cameraHeadingPitchDegDistanceMeters,
  4. Point3d cameraHeadingPitchRollDeg,
)

Set the camera relative to a target and allow arbitrary camera orientation.

This variant allows specifying an explicit camera heading/pitch/roll in addition to the camera's distance from the target.

Parameters

  • targetCoords: (Coordinates) Target geographic coordinate.
  • targetHeadingPitchRollDeg: (Point3d) Target orientation (deg).
  • cameraHeadingPitchDegDistanceMeters: (Point3d) Camera heading/pitch (deg) and distance (m).
  • cameraHeadingPitchRollDeg: (Point3d) Camera heading/pitch/roll (deg) to orient the camera arbitrarily relative to the target.

See also:

Implementation

void setCameraRelativeToTarget(
  final Coordinates targetCoords,
  final Point3d targetHeadingPitchRollDeg,
  final Point3d cameraHeadingPitchDegDistanceMeters,
  final Point3d cameraHeadingPitchRollDeg,
) {
  objectMethod(
    _pointerId,
    'MapCamera',
    'setCameraRelativeToTarget',
    args: <String, Object>{
      'coordinates': targetCoords,
      'tuple3D1': targetHeadingPitchRollDeg,
      'tuple3D2': cameraHeadingPitchDegDistanceMeters,
      'tuple3D3': cameraHeadingPitchRollDeg,
    },
  );
}