3D-City Model
    Preparing search index...

    Function loadFromConfig

    • Loads layers, styling, camera settings, projections, widgets, links, credits, and other configuration elements into the Cesium viewer and the application's UI, based on the provided config object.

      • Configures base imagery and terrain layers with localized names, selectable in the baseLayerPicker.
      • Sets up background and terrain switching, layer display, and credit attribution.
      • Handles styling (appearance) options, adding custom buttons/elements as needed.
      • Loads manual/documentation URLs, projection definitions (proj4), camera positioning, date/time, compass, header/footer, mesh and 3D/2D geo layers, various particle systems, and link cards.
      • Handles show/hide UI for mesh/pedestrian modes, and removes extraneous UI if not needed.
      • Populates and localizes credit, coordinate, and auxiliary UI elements.

      Parameters

      • config: Object

        The full application configuration object (parsed from JSON).

      Returns Promise<void>

      Resolves once all layers, widgets, and settings are applied.