Closed PerspectivesLab closed 8 months ago
Hi @PerspectivesLab, I ran it with this sample code, and it displayed the data. Try it with this code. Ensure your tileset.json is correct and there are no problems with the code.
const $3dTilesLayerDiscreteLOD = new itowns.C3DTilesLayer('3d-tiles-discrete-lod', {
name: 'DiscreteLOD',
sseThreshold: 0.05,
source: new itowns.C3DTilesSource({
url: 'https://raw.githubusercontent.com/CesiumGS/3d-tiles-samples/master/1.0/TilesetWithDiscreteLOD/tileset.json',
}),
}, view);
itowns.View.prototype.addLayer.call(view, $3dTilesLayerDiscreteLOD);
https://github.com/iTowns/itowns/blob/master/examples/3dtiles_basic.html#L46
hi, i am trying to follow up with itowns and load a tileset:
but the error is raised: Uncaught TypeError: Cannot read properties of undefined (reading 'children')
do you have clue if loading tiles with itowns + vite is doable ? thx