I’ve been trying to load my tileset using
try {
const tileset = await Cesium3DTileset.fromUrl(
“/url/Path/To/tileset.json”
)
tileset.readyPromise.then(() => {
console.log("tileset loaded")
})
} catch (error) {
console.error(error)
}
in my Nuxtjs + Threejs file but I keep getting rangeError: Invalid array length
. I’m not even trying to get it to appear in the scene yet, I just want it to load into the tileset
variable and I can probably figure out the rest later. I have made sure that the file path is correct, and I’m using the latest version of CesiumJs. The tileset follows the cesium 1.0 version.
I’m pretty sure that there’s nothing wrong with the tileset files because I got it to load successfully on the Cesium Ion web app.
So, can someone please just give me a working example code along with an example cesium tileset that shows me exactly how to get the tileset to load into the app? Something like a GitHub repo that I can just clone into my pc and see the results for myself? I’ve been looking for this for days