fromIonAssetId
suspend fun fromIonAssetId(assetId: Int, options: Cesium3DTileset.ConstructorOptions? = definedExternally): Cesium3DTileset(source)
Creates a 3D Tiles tileset, used for streaming massive heterogeneous 3D geospatial datasets, from a Cesium ion asset ID.
// Load a Cesium3DTileset with a Cesium ion asset ID of 124624234
try {
const tileset = await Cesium3DTileset.fromIonAssetId(124624234);
scene.primitives.add(tileset);
} catch (error) {
console.error(`Error creating tileset: ${error}`);
}
Content copied to clipboard
Parameters
assetId
The Cesium ion asset id.
options
An object describing initialization options