GeoLeaf Core API - v3.0.0
    Preparing search index...
    Downloader: {
        _cachingProfiles: Set<string>;
        _abortController: AbortController | null;
        _config: DownloaderConfig;
        init(config?: Record<string, unknown>): void;
        cacheProfile(
            profileId: string,
            _profile: Record<string, unknown>,
            resources: DownloaderResource[],
            options?: { onProgress?: (p: Record<string, unknown>) => void },
        ): Promise<Record<string, unknown>>;
        cancelDownload(): void;
        isDownloading(): boolean;
    } = CacheDownloader

    Type Declaration

    • _cachingProfiles: Set<string>
    • _abortController: AbortController | null
    • _config: DownloaderConfig
    • init: function
    • cacheProfile: function
      • Cache a complete profile

        Parameters

        • profileId: string

          Profile id, used to scope the cached entries.

        • _profile: Record<string, unknown>

          Unused. The resource list is enumerated by the caller, so the profile configuration itself is never read here.

        • resources: DownloaderResource[]

          The resources to fetch and store.

        • options: { onProgress?: (p: Record<string, unknown>) => void } = {}

          Optional settings.

          • OptionalonProgress?: (p: Record<string, unknown>) => void

            Called on each progress tick with a ProgressData-shaped snapshot.

        Returns Promise<Record<string, unknown>>

        A summary of the run, or { error } when the profile cache is disabled.

    • cancelDownload: function
    • isDownloading: function