IFClite TypeScript API
    Preparing search index...

    Interface BafuProviderOptions

    interface BafuProviderOptions {
        baseUrl?: string;
        cache?: HazardResponseCache;
        cellSize?: number;
        fetch?: {
            (input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
            (input: string | Request | URL, init?: RequestInit): Promise<Response>;
        };
        maxPixels?: number;
        now?: () => Date;
        style?: StyleCheckOptions;
        timeoutMs?: number;
    }
    Index
    baseUrl?: string

    Base URL of the WMS. Default https://wms.geo.admin.ch/.

    cellSize?: number

    Default cell size in metres. Default 0.5 (half the 1 m model raster), which is also the largest allowed.

    fetch?: {
        (input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
        (input: string | Request | URL, init?: RequestInit): Promise<Response>;
    }

    Defaults to the global fetch.

    Type Declaration

      • (input: RequestInfo | URL, init?: RequestInit): Promise<Response>
      • Parameters

        • input: RequestInfo | URL
        • Optionalinit: RequestInit

        Returns Promise<Response>

      • (input: string | Request | URL, init?: RequestInit): Promise<Response>
      • Parameters

        • input: string | Request | URL
        • Optionalinit: RequestInit

        Returns Promise<Response>

    maxPixels?: number

    Largest image side in pixels before a request is refused, finite and positive. Default 4096.

    now?: () => Date

    Clock for retrievedAt; defaults to new Date().

    style?: StyleCheckOptions
    timeoutMs?: number

    Per-request timeout in milliseconds, finite and positive. Default 20 000.