Taos API Reference
    Preparing search index...

    Function fetchTileBytes

    • Fetches binary tile content with persistent Cache-Storage caching + data-source logging — the shared engine behind HttpDataSource.fetchArrayBuffer. Exposed as a free function so loaders that aren't a GeoDataSource can opt into the SAME persistent cache and hit-ratio logging: notably the public raster imagery in imagery.ts, which has no auth header and so previously leaned only on the browser HTTP cache (invisible to the cache HUD, not durable).

      Content is keyed by identity (cacheKey, minus volatile session/key params) so a tile survives reloads and token rotation. Throws on HTTP error so the caller can fall back.

      Parameters

      • url: string
      • Optionalopts: { headers?: Record<string, string>; signal?: AbortSignal; label?: string }

      Returns Promise<ArrayBuffer>