首页 / 浏览问题 / 三维GIS / 问题详情
升级iClient3D到10后不兼容老版本发布的S3MTilesLayer?
95EXP 2020年08月07日

iclient3d从9升级到10后,原来的S3MTilesLayer未能显示且发现访问奇怪网址。

如果S3MLayer中的url使用域名如:http://xxx.com/......,则访问http://xxx./login.json

如果url使用IP如:,则访问http://120.0.0.77/login.json

1个回答

您好,您那边是怎么升级的iClient包
6,077EXP 2020年08月07日
用Build目录覆盖原有Build目录
打印S3MTilesLayer看看有没有信息
没有执行到Cesium.when(promise,function (layer) {....});中的function

console.log(promise);是输出{then: ƒ e(e,t,i)}

之后就是

Access to XMLHttpRequest at 'http://xxx./login.json' from origin 'http://localhost' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

如前述,scene.addS3MTilesLayerByScp(url, option); 中的url为http://xxx.com/........
您那边的缓存是什么类型的
缓存用途:普通PC

文件类型:S3M
...