SDK JS
    Preparing search index...

    The result of resolveSource: the fetched tileset JSON plus everything the

    // Resolve once, then hand the parts to the layer so it does not re-fetch the
    // root. Works for a plain tileset URL or a Cesium ion asset id.
    const src: ResolvedSource = await resolveSource(tilesetUrl);
    map.addLayer(
    new Tiles3DMeshLayer({
    id: 'city',
    url: src.tilesetUrl,
    json: src.json,
    baseUrl: src.baseUrl,
    requestInit: src.requestInit,
    }),
    );

    // ion requires you to display the attributions it returns.
    console.log(src.attributions);

    engine needs to fetch its tiles (base URL, reusable auth, vendor, query params).

    interface ResolvedSource {
        attributions?: string[];
        baseUrl: string;
        json: TilesetJson;
        queryParams?: Record<string, string>;
        requestInit: RequestInit;
        tilesetUrl: string;
        vcsWkid?: number;
        vendor: TilesetVendor;
    }
    Index

    Properties

    attributions?: string[]

    Required data-attribution HTML strings from a Cesium ion endpoint (display these as credits).

    baseUrl: string

    Directory of tilesetUrl; relative tile/external-tileset URIs resolve against it.

    The parsed tileset.json root, ready to pass to an engine constructor.

    queryParams?: Record<string, string>

    Query params to append to EVERY subsequent tile / external-tileset request — Google Photorealistic 3D Tiles ride a session token here (it's not a secret key, so it stays in the URL); the API key is sent as the X-Goog-Api-Key header in requestInit instead.

    requestInit: RequestInit

    Auth/headers to reuse for every tile + external-tileset fetch (Bearer token or Google API-key header). Empty for public sources.

    tilesetUrl: string

    Absolute URL of the resolved tileset.json (after ion redirection / Google key stripping).

    vcsWkid?: number

    The dataset's VERTICAL CRS WKID, read from the Esri extensions.ESRI_crs extension when present (e.g. 115700 ellipsoidal, 5773 EGM96); undefined if the tileset declares no vertical CRS. A MapLibre layer feeds this to datumFromVcsWkid to auto-place the dataset by its true height. See vcsWkidFromTileset.

    Detected producer/georeferencing convention; see TilesetVendor and detectVendor.