GeoLeaf Core API - v3.0.0
    Preparing search index...
    • Normalizes raw fetched data to the GeoLeaf POI shape when the layer declares data.mapping (a per-source block id, e.g. "gbif"). Returns the raw data unchanged when no mapping is declared, no mapping.json is loaded, or no items array is found.

      Parameters

      • rawData: unknown

        The raw fetched response (array, or object wrapping the array).

      • data: LayerDataConfig | undefined

        The layer's data config block.

      • layerId: string

        Layer id (for logging).

      • Log: GeoJSONLoaderLog

        Loader logger.

      • mappingConfig: Record<string, unknown> | null

        The active profile's mapping.json config (named per-source blocks).

      Returns unknown