Skip to content

CameraController

CameraController = { distance: number; target: Point; type: "orbitLocation"; } | { distance: number; type: "orbitGeoElement"; } | { type: "globe"; }

Defined in: src/ExpoArcgis.types.ts:2384

Camera controller for a <SceneView>.

  • orbitLocation — orbits around a fixed target point (OrbitLocationCameraController).
  • globe — free globe navigation (GlobeCameraController).

{ distance: number; target: Point; type: "orbitLocation"; }

distance: number

Initial camera distance from the target, in meters.

target: Point

The point the camera orbits around (WGS84 longitude/latitude, optional altitude).

type: "orbitLocation"


{ distance: number; type: "orbitGeoElement"; }

distance: number

Initial camera distance from the target graphic, in meters.

type: "orbitGeoElement"

Orbit a moving <Graphic> — also pass that graphic’s ref via <SceneView orbitGraphic>.


{ type: "globe"; }