Function loadCityJSON

  • Loads CityJSON into a SceneModel and/or a DataModel.

    See @xeokit/sdk/cityjson for usage.

    Parameters

    • params: { dataModel?: DataModel; fileData: any; sceneModel?: SceneModel }

      Loading parameters.

      • OptionaldataModel?: DataModel

        DataModel to load into.

      • fileData: any

        CityJSON file data.

      • OptionalsceneModel?: SceneModel

        SceneModel to load into.

    • options: { rotateX?: boolean } = ...

      CityJSON loading options

      • OptionalrotateX?: boolean

        True to rotate the model about the X-axis. Default is false.

    Returns Promise<any>

    Resolves when CityJSON has been loaded into the SceneModel and/or DataModel.

    SDKError

    • If the SceneModel has already been destroyed.
    • If the SceneModel has already been built.
    • If the DataModel has already been destroyed.
    • If the DataModel has already been built.