setCameraTargetCentered method

void setCameraTargetCentered(
  1. Coordinates coords,
  2. Point3d pos
)

Set the camera to look at a geographic target (sphere coordinate system).

Places the camera centered on coords at the distance / heading / pitch described by pos. Roll is kept at 0 to preserve a level horizon.

Parameters

  • coords: (Coordinates) Target geographic coordinate (lon/lat/alt).
  • pos: (Point3d) Tuple describing heading (deg), pitch (deg) and distance (meters) from the target.

See also:

Implementation

void setCameraTargetCentered(final Coordinates coords, final Point3d pos) {
  objectMethod(
    _pointerId,
    'MapCamera',
    'setCameraTargetCentered',
    args: <String, Object>{'coordinates': coords, 'tuple3D': pos},
  );
}