setCameraTargetCentered method
- Coordinates coords,
- 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:
- generatePositionAndOrientationTargetCentered for computing candidate camera values without mutating the live camera.
Implementation
void setCameraTargetCentered(final Coordinates coords, final Point3d pos) {
objectMethod(
_pointerId,
'MapCamera',
'setCameraTargetCentered',
args: <String, Object>{'coordinates': coords, 'tuple3D': pos},
);
}