geoview-core - v2.3.0
    Preparing search index...

    Function setStoreLegendQueryStatus

    • Sets the legend query status and associated legend data for a specific layer.

      Updates the layer's legendQueryStatus, legendSchemaTag, styleConfig, icons, and items in one atomic mutation. Icons and items default to empty arrays when not provided.

      Parameters

      • mapId: string

        The map identifier

      • layerPath: string

        The layer path to update

      • legendQueryStatus: LegendQueryStatus

        The new legend query status

      • legendSchemaTag: TypeGeoviewLayerType | undefined

        Optional GeoView layer type tag describing the legend schema

      • styleConfig:
            | Partial<
                Record<
                    | "Point"
                    | "MultiPoint"
                    | "LineString"
                    | "MultiLineString"
                    | "Polygon"
                    | "MultiPolygon"
                    | "GeometryCollection",
                    TypeLayerStyleSettings,
                >,
            >
            | undefined

        Optional layer style configuration to associate with the legend

      • icons: TypeLegendLayerItem[] | undefined

        Optional legend icon images to associate with the layer

      • items: TypeLegendItem[] | undefined

        Optional legend items to associate with the layer

      Returns void