Taos API Reference
    Preparing search index...

    Interface GeoDataSource

    The minimal surface Tileset3D / TerrainTileset need from a provider.

    interface GeoDataSource {
        kind: DataSourceKind;
        label: string;
        rootUrl: string;
        attributions: Attribution[];
        fetchJson(url: string, opts?: { cache?: boolean }): Promise<any>;
        fetchArrayBuffer(
            url: string,
            extraHeaders?: Record<string, string>,
            signal?: AbortSignal,
        ): Promise<ArrayBuffer>;
    }

    Implemented by

    Index

    Properties

    Whether this is 3D Tiles, terrain, or imagery.

    label: string

    Short human-readable provider name (e.g. 'Cesium ion', 'Google (direct)'), used by the optional dataSourceLog to say which source served a load.

    rootUrl: string

    Absolute URL of the root tileset.json (3D Tiles) or endpoint directory (terrain). Carries any auth that propagates down the tree as a query param (e.g. an API key).

    attributions: Attribution[]

    Attribution lines that must be shown while this source is rendered.

    Methods

    • Fetches + parses a JSON document (tileset.json, layer.json, subtree index).

      Parameters

      • url: string
      • Optionalopts: { cache?: boolean }

      Returns Promise<any>