@geogirafe/lib-geoportal
    Preparing search index...
    type SharedInternalTheme = {
        checked: number;
        children: SharedInternalLayer[];
        excludedChildrenIds: number[];
        excludedChildrenNames: string[];
        id: number;
        isExpanded: number;
        name: string;
        order: number;
        type: string;
    }
    Index

    Properties

    checked: number
    excludedChildrenIds: number[]

    The following attribute will be useful to know which children were explicitly deleted from the view. Without this, we are not able to know if the layer is new in the server configuration And should forcefully be added to the layer tree because the user just didn't know this layer when he has created this shared state Or if it was explicitly removed from the user, and then we won't have to display it again

    excludedChildrenNames: string[]
    id: number
    isExpanded: number
    name: string

    When configuring the share with "preferNames=true", the name of the layer will be used to generate the sahred state instead of the ID. But in this case, we also have to share the type os the layer, because tha layer name can be the same for a them, a group, a WMS-Layer, a WMTSLayer, etc... Also note that the "excludedChildrenNames" options has some limitations : if we have 2 layers of different types with the same name And if one of it is exceluded, both will be excluded.

    order: number
    type: string