Skip to content

KBE3D / KBCore / Cesium / ITwinData / createDataSourceForRealityDataId

函数: createDataSourceForRealityDataId()

createDataSourceForRealityDataId(options: { iTwinId: string; realityDataId: string; type?: RealityDataType; rootDocument?: string; }): Promise<GeoJsonDataSource | KmlDataSource>

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

If the <code>type</code> or <code>rootDocument</code> are not provided this function will first request the full metadata for the specified reality data to fill these values.

参数

options

iTwinId

string

The id of the iTwin to load data from

realityDataId

string

The id of the reality data to load

type?

RealityDataType

The type of this reality data

rootDocument?

string

The path of the root document for this reality data

返回

Promise<GeoJsonDataSource | KmlDataSource>

KBE3D @3.0.0 Copyright © 2024-present KBE3D