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

    Interface TypeVectorLegend

    Represents the legend data for a layer.

    interface TypeVectorLegend {
        legend: TypeVectorLayerStyles;
        styleConfig?: Partial<
            Record<
                | "Point"
                | "MultiPoint"
                | "LineString"
                | "MultiLineString"
                | "Polygon"
                | "MultiPolygon"
                | "GeometryCollection",
                TypeLayerStyleSettings,
            >,
        >;
        type: TypeGeoviewLayerType;
    }

    Hierarchy (View Summary)

    Index

    Properties

    The legend content — vector styles, an HTML canvas, or null.

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

    Optional style configuration associated with the legend.

    type: TypeGeoviewLayerType

    The GeoView layer type this legend belongs to.