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

    Internal registry for MapLibre layers managed by the adapter.

    One instance per adapter. All mutations are through explicit methods — callers never modify entries directly.

    Index

    Constructors

    Accessors

    Methods

    • Returns the GeoJSON geometry-type set for a registered layer, or undefined if the layer is unknown or its geometry was not recorded.

      Parameters

      • layerId: string

      Returns Set<string> | undefined

    • Registers a new GeoLeaf layer with its MapLibre sub-layers.

      Parameters

      • layerId: string

        GeoLeaf layer identifier.

      • subLayerTypes: SubLayerType[]

        Which sub-layer types were created.

      • zIndex: number

        Layer z-index for ordering (0–99).

      • Optionaloptions: {
            isVectorTile?: boolean;
            sourceLayer?: string;
            customSubLayerIds?: string[];
            customSourceId?: string;
            geometryTypes?: Set<string>;
        }

        Additional options (vector tile, source-layer, custom IDs).

        • OptionalisVectorTile?: boolean
        • OptionalsourceLayer?: string
        • OptionalcustomSubLayerIds?: string[]

          Override auto-generated sub-layer IDs (e.g. for cluster layers).

        • OptionalcustomSourceId?: string

          Override auto-generated source ID.

        • OptionalgeometryTypes?: Set<string>

          GeoJSON geometry-type vocabulary present on the layer.

      Returns LayerRegistryEntry

    • Computes the beforeId for inserting a new layer at the given z-index.

      Finds the first existing sub-layer with a higher z-index and returns its ID. If none exists, returns the sentinel layer ID so the new layer is inserted just below the POI boundary.

      Parameters

      • zIndex: number

        The z-index of the layer being inserted.

      Returns string

      The MapLibre layer ID to pass as beforeId to map.addLayer().