@versatiles/style
    Preparing search index...

    Function fetchTileJSON

    • Download a TileJSON document and make its relative tiles[] entries absolute.

      osm() and satellite() do no I/O, so this is how you obtain a TileJSON when the style needs one at build time — to inline it via urls, or to inspect it with osm.languages(). To resolve an already-built style instead, use inlineSources().

      Parameters

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

      Returns Promise<TileJSONSpecification>