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

    Detail payload for geoleaf:layer:added.

    Dispatched once per GeoLeaf layer right after its MapLibre source + sub-layers are created (GeoJSON layers and POI cluster groups). Lets capability plugins (e.g. taxonomy) apply per-layer paint/layout once the layer exists, without polling.

    interface GeoLeafLayerAddedDetail {
        layerId: string;
        sourceId: string;
        geometryTypes: readonly string[];
    }
    Index

    Properties

    layerId: string

    GeoLeaf layer id that was just added to the map.

    sourceId: string

    MapLibre source id backing the layer (gl-src-<layerId> by default).

    geometryTypes: readonly string[]

    GeoJSON geometry-type vocabulary present on the layer (e.g. ["Polygon"], ["Point"], ["LineString", "Polygon"]).