3D-City Model
    Preparing search index...

    Function switchStyling

    • Switches the visual styling and shader logic of all stylable/vegetation 3D layers in the viewer.

      • Updates all stylable and vegetation layers with a Cesium3DTileStyle that accounts for hidden features/entities (using Variables.hideIDs and updateStylingWithDeletionList).
      • Swaps between texture (realistic/photoreal/colored) and schematic (white/green) custom shaders depending on the 'texture' query parameter in the URL manager.
      • Ensures both the layerCollection and the styleManager reflect the currently applied style.
      • If a non-default style is selected, applies it and updates with the hidden ID filtering.

      Parameters

      • Optionalstyle: string = ...

        The name/key of the style to use.

      Returns Promise<void>