RealityDataSourceProvider Interface

A named supplier of [RealityDataSource]]s. The provider's name is stored in a RealityDataSourceKey. When the RealityDataSource is requested from the key, the provider is looked up in realityDataSourceProviders by its name and, if found, its createRealityDataSource method is invoked to produce the reality data source.

Implemented by

Methods

Name Description
addAttributions(cards: HTMLTableElement, vp: ScreenViewport): Promise<void> Optional Optionally add attribution logo cards to the viewport's logo div.  
createRealityDataSource(key: RealityDataSourceKey, iTwinId: string): Promise<undefined | RealityDataSource> Produce a RealityDataSource for the specified key.  
decorate(_context: DecorateContext): void Optional Optionally add any decorations specific to this reality data source provider.  

Properties

Name Type Description
useCachedDecorations "true" | undefined Enables cached decorations for this provider.  

Defined in

Last Updated: 03 July, 2025