@geogirafe/lib-geoportal
    Preparing search index...

    Hierarchy (View Summary)

    Index
    • Add the related theme if it's not already (even partially) in the layertree. If it's already in it, don't add it, warn the user, and highlight it.

      Parameters

      Returns boolean

      true if the related theme is added to the layertree, false otherwise.

    • Add the missing layers of an in-use theme, from an original theme description. The added layers are deactivated.

      Parameters

      • originalTheme: ThemeLayer

        a Theme object, or model, as initially defined.

      Returns void

    • Calculates the initial order (=position) for a new theme in the tree. Themes are added at the top of the tree, but underneath any pinned themes. Defaults to 0. This prevents themes of visibly "jumping" around in the tree after being added due to reordering.

      Returns number

    • Count the layer in both the given theme and the matching original theme.

      Parameters

      Returns boolean

      true if the count is the same. False otherwise.