Cesium3DTilesTerrainProvider
⚠️ EXPERIMENTAL - This component wraps an experimental Cesium API that may change without notice.
Cesium3DTilesTerrainProvider loads 3D Tiles as terrain data.
This is an alternative to traditional terrain providers like CesiumTerrainProvider. Note: Has limitations on the types of 3D Tiles that can be used as terrain.
This feature is not final and is subject to change without Cesium’s standard deprecation policy.
- Cesium element: Cesium3DTilesTerrainProvider
- Example: Cesium3DTilesTerrainProvider
Availability
Section titled “Availability”Used with the Globe component’s terrainProvider prop.
Properties
Section titled “Properties”Cesium properties
Section titled “Cesium properties”N/A
Cesium read-only properties
Section titled “Cesium read-only properties”| Property | Type | Description |
|---|---|---|
| url | string | Resource | Promise<Resource> | Promise<string> | undefined | The URL of the Cesium 3D Tiles terrain server. |
| requestVertexNormals | boolean | undefined | Request additional lighting information from the server, in the form of per vertex normals if available. |
| requestWaterMask | boolean | undefined | Request per tile water masks from the server, if available. |
| ellipsoid | Ellipsoid | undefined | The ellipsoid. If not specified, the WGS84 ellipsoid is used. |
| credit | string | Credit | undefined | A credit for the data source, which is displayed on the canvas. |
Cesium events
Section titled “Cesium events”N/A
Other properties
Section titled “Other properties”| Property | Type | Description |
|---|---|---|
| children | ReactNode | |
| onReady | ((terrainProvider: Cesium3DTilesTerrainProvider) => void) | undefined | Calls when the terrain provider is successfully created. |
| assetId | number | undefined | The Ion asset ID to load from Cesium Ion. Alternative to using url. |
| accessToken | string | undefined | The access token for Cesium Ion. Only needed if assetId is provided and different from default. |