GeoLeaf Core API - v3.0.0
    Preparing search index...
    • Creates a GeoJSON source + fill/line/circle sub-layers (and cluster layers when options.cluster is set) for the given data, then registers them.

      Parameters

      • map: Map$1

        The underlying maplibregl.Map.

      • registry: MaplibreLayerRegistry

        The adapter's layer registry.

      • ensureSentinel: () => void

        Callback that guarantees the POI sentinel layer exists.

      • id: string

        GeoLeaf layer id.

      • data: unknown

        GeoJSON FeatureCollection.

      • Optionaloptions: GeoLeafLayerOptions

        Layer/style options.

      Returns void