首页 / 浏览问题 / 云GIS / 问题详情
超图FAQ:生成缓存保存到工作空间后 发布服务,访问时报错如图
43,901EXP 2022年06月21日
超图FAQ:生成缓存保存到工作空间后发布服务,访问时报错如图

1个回答

报错信息:

【问题原因】 访问数据部分代码有误 【解决办法】 于本地webgl包中访问数据。 webglwebgl中加载缓存一般有两种方式: 1.scene.open加载url可参考官网示例BIM模型代码第104行BIM模型 (supermap.com.cn):   例如: var promise = scene.open("http://www.supermapol.com/realspace/services/3D-BIMbuilding/rest/realspace"); 2.scene.addS3MTilesLayerByScp加载url可参考官网示例分屏显示代码第230行所示分屏显示 (supermap.com.cn): 例如: var scene = viewer.scene;         var promise=scene.addS3MTilesLayerByScp("http://www.supermapol.com/realspace/services/3D-suofeiya_church/rest/realspace/datas/Config/config",         {name:"suofeiyaOSGB",cullEnabled:false});         Cesium.when(promise,function (layer) {             viewer.zoomTo(layer);         })

43,901EXP 2022年06月21日
热门文章
关注我们
...