GeoLeaf Core API - v3.0.0
    Preparing search index...

    What the adapter remembers about one registered layer.

    Holds the mapping from a GeoLeaf layer id to the MapLibre ids it produced. Without it, a teardown or a visibility toggle would have to re-derive those ids by convention, and any drift in the convention would silently orphan layers.

    interface LayerRegistryEntry {
        sourceId: string;
        subLayerIds: string[];
        zIndex: number;
        visible: boolean;
        subLayerTypes: Set<SubLayerType>;
        geometryTypes?: Set<string>;
        isVectorTile: boolean;
        sourceLayer?: string;
    }
    Index

    Properties

    sourceId: string

    MapLibre source ID, e.g. gl-src-my-layer.

    subLayerIds: string[]

    Ordered list of MapLibre layer IDs created for this GeoLeaf layer.

    zIndex: number

    z-index from the GeoLeaf profile (0–99).

    visible: boolean

    Current visibility state.

    subLayerTypes: Set<SubLayerType>

    Which sub-layer types were actually created.

    geometryTypes?: Set<string>

    GeoJSON geometry-type vocabulary present on this layer ("Point" / "LineString" / "Polygon" …). Distinct from subLayerTypes: a polygon layer also creates a line sub-layer for its outline, so subLayerTypes cannot tell a polygon from a polyline. Capability plugins (taxonomy) need the true geometry to pick fill vs stroke.

    isVectorTile: boolean

    Whether this is a vector tile layer (vs. GeoJSON).

    sourceLayer?: string

    Source-layer name for vector tile sources.