Class FetchReader

The browser reader that fetches data from a URL.

Implements

Constructors

Properties

Methods

Constructors

  • Parameters

    • path: string

      the location of the PMTiles data

    • rangeRequests: boolean

      FetchReader specific; enable range requests or use urlParam "bytes"

    Returns FetchReader

Properties

path: string

the location of the PMTiles data

rangeRequests: boolean

FetchReader specific; enable range requests or use urlParam "bytes"

Methods

  • Parameters

    • offset: number

      the offset of the range

    • length: number

      the length of the range

    Returns Promise<Uint8Array>

    • the ranged buffer