Taos API Reference
    Preparing search index...

    Function fetchGeoJson

    • Fetches + parses a GeoJSON document by URL. No tiling — GeoJSON is a single document, so this is a plain cached fetch (not the tileset HttpDataSource machinery); throws on a non-OK response or HTML (a misrouted error page) instead of a JSON body.

      Parameters

      • url: string
      • Optionalinit: RequestInit

      Returns Promise<unknown>