ITwinData

external object ITwinData(source)

Methods for loading iTwin platform data into CesiumJS

See also

Functions

Link copied to clipboard
suspend fun createDataSourceForRealityDataId(    iTwinId: String,     realityDataId: String,     type: ITwinPlatform.RealityDataType? = definedExternally,     rootDocument: String? = definedExternally): Any

Create a data source of the correct type for the specified reality data id. This function only works for KML and GeoJSON type data.

Link copied to clipboard
fun createDataSourceForRealityDataIdAsync(    iTwinId: String,     realityDataId: String,     type: ITwinPlatform.RealityDataType? = definedExternally,     rootDocument: String? = definedExternally): <Error class: unknown class><Any>
Link copied to clipboard
suspend fun createTilesetForRealityDataId(    iTwinId: String,     realityDataId: String,     type: ITwinPlatform.RealityDataType? = definedExternally,     rootDocument: String? = definedExternally): Cesium3DTileset

Create a tileset for the specified reality data id. This function only works with 3D Tiles meshes and point clouds.

Link copied to clipboard
fun createTilesetForRealityDataIdAsync(    iTwinId: String,     realityDataId: String,     type: ITwinPlatform.RealityDataType? = definedExternally,     rootDocument: String? = definedExternally): <Error class: unknown class><Cesium3DTileset>
Link copied to clipboard
suspend fun createTilesetFromIModelId(iModelId: String, options: Cesium3DTileset.ConstructorOptions? = definedExternally): Cesium3DTileset?

Create a Cesium3DTileset for the given iModel id using iTwin's Mesh Export API.

Link copied to clipboard
fun createTilesetFromIModelIdAsync(    iModelId: String,     options: Cesium3DTileset.ConstructorOptions? = definedExternally): <Error class: unknown class><Cesium3DTileset?>
Link copied to clipboard
suspend fun loadGeospatialFeatures(iTwinId: String, collectionId: String, limit: Double? = definedExternally): GeoJsonDataSource

Load data from the Geospatial Features API as GeoJSON.

Link copied to clipboard
fun loadGeospatialFeaturesAsync(    iTwinId: String,     collectionId: String,     limit: Double? = definedExternally): <Error class: unknown class><GeoJsonDataSource>