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) used to decode KTX2 textures. Defaults to the copy bundled with the plugin. Set it to serve your own copy.

    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