Class FetchSource

Uses the browser Fetch API to make tile requests via HTTP.

This method does not send conditional request headers If-Match because of CORS. Instead, it detects ETag mismatches via the response ETag or the 416 response code.

This also works around browser and storage-specific edge cases.

Implements

Constructors

Properties

Methods

Constructors

Properties

customHeaders: Headers

A Headers object, specfying custom Headers set for all requests to the remote archive.

This should be used instead of maplibre's transformRequest for PMTiles archives.

url: string

Methods

  • Return a unique string key for the archive e.g. a URL.

    Returns string

  • Mutate the custom Headers set for all requests to the remote archive.

    Parameters

    • customHeaders: Headers

    Returns void

Generated using TypeDoc