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

    Properties

    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 used to decode KTX2 textures. Defaults to the three.js examples CDN path on unpkg; point this at a self-hosted copy when external CDNs are not an option (e.g. strict CSP).

    type: "models"
    withCredentials?: boolean

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

    false