首页 / 浏览问题 / 三维GIS / 问题详情
超图FAQ:【WebGL】Cesium使用scene.addS3MTilesLayerByScp()接口添加S3M图层,如何使用多子域?
64,468EXP 2024年07月04日
【WebGL】Cesium使用scene.addS3MTilesLayerByScp()接口添加S3M图层,如何使用多子域?

1个回答

【解决办法】需设置subdomainConfig,示例代码如下: var config = { subdomainConfig: { urlScheme: " http://{s}/iserver/services/3D-CBD/rest/realspace", subdomains: ['localhost:8081', 'localhost:8082', 'localhost:8083']//设置子域 }, name: "building" }; var promise = viewer.scene.addS3MTilesLayerByScp('http://localhost:8090/iserver/services/3D-CBD/rest/realspace/datas/building/config', config); Cesium.when(promise, function (layer) { viewer.flyTo(promise); })
64,468EXP 2024年07月04日
热门文章
关注我们
...