代码如下:
let viewer = new Cesium.Viewer('cesiumContainer');
let scene = viewer.scene;
let layer = new S3MTilesLayer({
context : scene._context,
url: 'http://xxx:9000/3dData/wf3/Combine.scp',
});
const result = scene.primitives.add(layer);
layer.readyPromise.then(function() {
scene.camera.setView({
destination : Cesium.Cartesian3.fromDegrees(114.1603807501233,
35.78320846685121, 1000)
});
}).otherwise(function(error) {
console.log(error);
});