interface LoadProgressHandler {
    dynamicLoadStarted?(version: Version): void;
    dynamicLoadStopped?(version: Version): void;
    versionLoadProgress?(version: Version, progress: number): void;
    versionLoaded?(version: Version): void;
    versionUnloaded?(version: Version): void;
}

Methods

  • Called when the dynamic loading of a model has started. Dynamic loading currently only happens for point cloud models, where parts of the model are being loaded upon user interaction. Note: For some types of user interaction such as zooming this has the tendency of flickering on/off often, so it can be advised to implement some type of buffering.

    Parameters

    • version: Version

      The version for which dynamic loading has started

    Returns void

  • Called when the dynamic loading of a model has stopped.

    Parameters

    • version: Version

      The version for which dynamic loading has stopped

    Returns void

  • Parameters

    • version: Version

      The version for which progress is reported

    • progress: number

      How far along loading this Version is in a percentage (0-100)

    Returns void

  • Called when a version has been completely loaded

    Parameters

    Returns void

  • Called when a version has been completely unloaded

    Parameters

    Returns void