I am trying to load cesium3DTileset fromIonAssetId in CesiumJs, but couldn’t get it to display any suggestions would be appreciated.
const rj1resource = await Cesium.Cesium3DTileset.fromIonAssetId(2378250)
viewer.scene.primitives.add(rj1resource);
await viewer.zoomTo(rj1resource);
Albnas
2
Hi
What version are you using?
You could try this:
let rj1resource;
try {
rj1resource = await Cesium.Cesium3DTileset.fromIonAssetId(2378250)
viewer.scene.primitives.add(rj1resource);
await viewer.zoomTo(rj1resource);
} catch (error) {
console.log(`Error loading tileset: ${error}`)
};
Also check the console for errors.
/A
1 Like