GeoLeaf Core API - v3.0.0
    Preparing search index...
    WorkerManager: {
        fetchGeoJSON: (
            url: string,
            layerId: string,
            options?: {
                chunkSize?: number;
                onChunk?: (
                    features: GeoJSONFeature[] | undefined,
                    index?: number,
                    total?: number,
                ) => void;
            },
        ) => Promise<unknown>;
        fetchText: (url: string, layerId: string) => Promise<unknown>;
        isAvailable: () => boolean;
        dispose: () => void;
    } = ...

    Type Declaration

    • fetchGeoJSON: (
          url: string,
          layerId: string,
          options?: {
              chunkSize?: number;
              onChunk?: (
                  features: GeoJSONFeature[] | undefined,
                  index?: number,
                  total?: number,
              ) => void;
          },
      ) => Promise<unknown>

      Fetches and parses GeoJSON through the Web Worker (or the main-thread fallback).

    • fetchText: (url: string, layerId: string) => Promise<unknown>

      Fetches the raw text of a URL through the Web Worker (or the main-thread fallback). Perf 6.3.1: Used for GPX files to offload network from the main thread. Note: DOMParser parsing stays on the main thread — it is not available in every Worker.

    • isAvailable: () => boolean

      Checks whether the Web Worker is available.

    • dispose: () => void

      Terminates the Worker and clears its state. Called during application teardown.