Appearance
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?
The type of this reality data
rootDocument?
string
The path of the root document for this reality data
返回
Promise<GeoJsonDataSource | KmlDataSource>
