@geogirafe/lib-geoportal
    Preparing search index...
    • Prepares a list of layer tree items for search by processing them hierarchically.

      Parameters

      • layer: BaseLayer

        The layer to process.

      • OptionalparentIds: string[] = []

        An array of parent IDs representing the hierarchy above the current layer.

      Returns { idList: string[]; name: string }[]

      An array of objects where each object contains:

      • idList: A combined array of parent IDs, the layer's own ID, and all of its children IDs.
      • name: The localized and lowercased name of the layer.