超图版本:
地图url链接仅供参考
方式一:scene.open 方式加载
var url = "----------这是服务地址-------/iserver/services/_S3M/rest/realspace";
this.viewer = new Cesium.Viewer("cesiumContainer");
var scene = this.viewer.scene;
scene.customRequestHeaders=
{
'token':"========此处放置token============="
}
scene.open(url);
方式二:scene.addS3MTilesLayerByScp方式加载
var url = "----------这是服务地址-------/iserver/services/33M/rest/realspace/datas/Config/config";
this.viewer = new Cesium.Viewer("cesiumContainer");
var scene = this.viewer.scene;
scene.addS3MTilesLayerByScp(url, {
customRequestHeaders:
{
'token':'========此处放置token============='
}
})