GeoLeaf Core API - v3.0.0
    Preparing search index...
    • Creates a clustered POI source and its four layers on the map.

      ⚠️ Awaits the style before touching it: MapLibre rejects addSource/addLayer until the style has loaded, and the failure is asynchronous, so a caller that skips the wait gets a source that silently never appears.

      Parameters

      • map: Map$1

        The native MapLibre map.

      • id: string

        Logical POI id; the source and layer ids are derived from it.

      • Optionaloptions: ClusterSourceOptions

        Clustering and paint parameters.

      Returns Promise<ClusterLayerIds>

      The ids created, for later update or teardown.