RealityDataSource.createKeyFromUrl Function

Create a RealityDataSourceKey from a tilesetUrl.

createKeyFromUrl(tilesetUrl: string, inputProvider?: RealityDataProvider, inputFormat?: RealityDataFormat): RealityDataSourceKey

Parameter Type Description
tilesetUrl string the reality data attachment url
inputProvider RealityDataProvider identify the RealityDataProvider if known, otherwise function will try to extract it from the tilesetUrl
inputFormat RealityDataFormat identify the RealityDataFormat if known, otherwise function will try to extract it from the tilesetUrl

Returns - RealityDataSourceKey

the RealityDataSourceKey that uniquely identify a reality data for a provider

Defined in

Last Updated: 30 November, 2023