The following is no longer working in CJS. Has something changed?
viewer.scene.primitives.add( new Cesium.Cesium3DTileset({
url: “https://customDomain.com/tileset.json”
}));
Im looking at the network tab in dev tools and it seems the request to fetch the tileset.json is no longer being made
That’s most likely due to an API change in version 1.107.
The tileset has to be created with await...fromUrl
, roughly like this:
viewer.scene.primitives.add(await Cesium.Cesium3DTileset.fromUrl(
"https://customDomain.com/tileset.json"));
For details, refer to CesiumJS Ready Promise Deprecation / API Changes