Skip to Content
APIConfigurationInterface: Scene3DModelsProgress

Interface: Scene3DModelsProgress

Aggregate load progress for the declarative GLB models in MapConfig.scene3D, reported via MapConfig.onScene3DModelsProgress.

Properties

done

readonly done: boolean;

true on the final event for the batch, once every asset has settled.


loadedAssets

readonly loadedAssets: number;

Distinct asset URLs that have finished downloading — successfully, failed, or timed out.


loadedBytes

readonly loadedBytes: number;

Bytes downloaded so far, summed across every asset’s download.


totalAssets

readonly totalAssets: number;

Total distinct asset URLs declared across Scene3DConfig’s models.assets.


totalBytes

readonly totalBytes: number | null;

Bytes expected, summed from each asset response’s Content-Length. null while any asset’s total is still unknown because it’s still downloading and hasn’t reported one yet (not yet requested, or the server omitted Content-Length) — render an indeterminate bar rather than a percentage in that case. Once an asset settles (successfully, failed, or timed out) without ever reporting a total, its contribution falls back to however many bytes it did transfer, so a single such asset does not force the whole batch indeterminate forever.

Last updated on