GeoLeaf Core API - v3.0.0
    Preparing search index...
    • Registers a moveend listener on the map to re-fetch OGC features when the viewport changes. The listener is debounced to avoid flooding the server.

      Parameters

      • map: MapLike

        MapLibre map instance (minimal interface).

      • config: OgcApiConfig

        OGC API source configuration.

      • reloadFn: (bbox: [number, number, number, number]) => void

        Callback invoked with the current viewport bbox on each refresh.

      Returns () => void

      A cleanup function that removes the listener. Call it on layer removal.