TomTom Maps for JavaScript
    Preparing search index...

    Class ModelsSource

    Source of tiled glTF/GLB models for a ModelsLayer.

    Tracks the tiles covering the current viewport, fetches each tile's models once, or again after a failure that clears on its own or the KTX2 transcoder failed to load, and keeps them in a Three.js Group that the owning layer renders.

    Index
    accessDenied: boolean

    Whether a tile came back 401 or 403, so the key loads none and the source fetches no more.

    id: string
    loadedTiles: Set<string>
    map: Map$1
    maxzoom: number
    minzoom: number
    onTileLoaded?: (scene: Group, key: string) => void

    Optional consumer callback fired once per successful tile load.

    scene: Group
    sceneOrigin: { x: number; y: number } | null

    EPSG:3857 origin subtracted from all mesh positions, because absolute coordinates (~6·10⁶ m) exceed float32 precision (~0.5 m), making landmark edges tremble while zooming. null until the first tile with meshes loads.

    tiles: string[]
    type: "models"
    • Parameters

      • map: Map$1
      • renderer: WebGLRenderer

      Returns void

    • Returns void