TomTom Maps for JavaScript
    Preparing search index...

    Interface ModelsSourceSpecification

    Style-like specification for a ModelsSource: a tiled source of glTF/GLB models, mirroring the shape of a MapLibre raster/vector source definition.

    interface ModelsSourceSpecification {
        attribution?: string;
        bounds?: [number, number, number, number];
        maxzoom?: number;
        minzoom?: number;
        scheme?: "xyz" | "tms";
        tiles: string[];
        transcoderPath?: string;
        type: "models";
        withCredentials?: boolean;
    }
    Index
    attribution?: string
    bounds?: [number, number, number, number]
    maxzoom?: number
    minzoom?: number
    scheme?: "xyz" | "tms"
    tiles: string[]
    transcoderPath?: string

    Base path of the Basis Universal transcoder (basis_transcoder.js and basis_transcoder.wasm) that decodes KTX2 textures, ending in /, such as '/basis/'. Set it to serve the transcoder from your own host. By default, the plugin loads the two files it ships beside its bundle, which Vite and webpack 5 emit with your build. A bundler that doesn't emit the files a new URL('./file', import.meta.url) names needs this path.

    type: "models"
    withCredentials?: boolean

    Whether each tile request sends credentials: 'include', so a session cookie (e.g. the demos proxy's) travels with it. Leave it off for direct api.tomtom.com access, where credentialed CORS would fail.

    false