Camera
Camera
can operate the camera of the scene.
All properties are applied to single camera of the scene.
Note: Following code is not recommended as occur extra rendering steps:
<Viewer>
<Scene>
<Globe>
<Camera>
<Entity />
</Camera>
</Globe>
</Scene>
</Viewer>
Camera
component's role is just changing fields of Viewer#scene#camera
, so following code is recommended.
<Viewer>
<Scene />
<Globe />
<Camera />
<Entity />
</Viewer>
For details, refer to "Component location" chapter in Guide.
Availability
Camera can be mounted insideViewer or CesiumWidget components. It can not be mounted more than once for each Viewer or CesiumWidget.
Properties
Cesium properties
Property | Type | Description |
---|---|---|
position | Cartesian3 | |
direction | Cartesian3 | |
up | Cartesian3 | |
right | Cartesian3 | |
frustum | PerspectiveFrustum | PerspectiveOffCenterFrustum | OrthographicFrustum | |
defaultMoveAmount | number | |
defaultLookAmount | number | |
defaultRotateAmount | number | |
defaultZoomAmount | number | |
constrainedAxis | Cartesian3 | |
maximumZoomFactor | number | |
percentageChanged | number |
Cesium read-only properties
N/A
Cesium events
Property | Type | Description |
---|---|---|
onChange | (areaPercentage: number) => void | |
onMoveEnd | () => void | |
onMoveStart | () => void |
Other properties
N/A