我加载服务器上的3d-tiles文件会出现掉包的问题,单个访问文件时时没问题的?请问这个是什么原因?
加载代码:
var tileset = viewer.scene.primitives.add(new SuperMap3D.Cesium3DTileset({
url: 'https://xxx/tileset.json'
}));
//读取图层位置,切换相机
tileset.readyPromise.then(function (tileset) {
// Set the camera to view the newly added tileset
viewer.camera.viewBoundingSphere(tileset.boundingSphere, new SuperMap3D.HeadingPitchRange(0, -0.5, 0));
});
//图层加载打印日志
tileset.allTilesLoaded.addEventListener(function () {
console.log('All tiles are loaded');
});