|
|
|
|
@ -675,7 +675,7 @@
|
|
|
|
|
// 默认展示MAP_SERVER_CONFIG的第[i,j]图层
|
|
|
|
|
const defaultBaseMapIndex = DEFAULT_BASEMAP
|
|
|
|
|
if (MAP_SERVER_CONFIG[defaultBaseMapIndex[0]].id === "baseMap") {
|
|
|
|
|
const defaultBaseMap = MAP_SERVER_CONFIG[defaultBaseMapIndex[0]].children[defaultBaseMapIndex[0]]
|
|
|
|
|
const defaultBaseMap = MAP_SERVER_CONFIG[defaultBaseMapIndex[0]].children[defaultBaseMapIndex[1]]
|
|
|
|
|
methods.handlerChangeBasemap(defaultBaseMap)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -1316,17 +1316,17 @@
|
|
|
|
|
viewer.scene.imageryLayers.removeAll();//去除其他图层
|
|
|
|
|
viewer.scene.lightSource.ambientLightColor = new Cesium.Color(0.65, 0.65, 0.65, 1);
|
|
|
|
|
viewer.scene.skyAtmosphere.show = false; //大气
|
|
|
|
|
var sunSkyBox = new Cesium.SkyBox({
|
|
|
|
|
sources: {
|
|
|
|
|
positiveX: 'http://support.supermap.com.cn:8090/webgl/Cesium/examples/webgl/images/SkyBox/bluesky/Right.jpg',
|
|
|
|
|
negativeX: 'http://support.supermap.com.cn:8090/webgl/Cesium/examples/webgl/images/SkyBox/bluesky/Left.jpg',
|
|
|
|
|
positiveY: 'http://support.supermap.com.cn:8090/webgl/Cesium/examples/webgl/images/SkyBox/bluesky/Front.jpg',
|
|
|
|
|
negativeY: 'http://support.supermap.com.cn:8090/webgl/Cesium/examples/webgl/images/SkyBox/bluesky/Back.jpg',
|
|
|
|
|
positiveZ: 'http://support.supermap.com.cn:8090/webgl/Cesium/examples/webgl/images/SkyBox/bluesky/Up.jpg',
|
|
|
|
|
negativeZ: 'http://support.supermap.com.cn:8090/webgl/Cesium/examples/webgl/images/SkyBox/bluesky/Down.jpg'
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
viewer.scene.skyBox = sunSkyBox;
|
|
|
|
|
// var sunSkyBox = new Cesium.SkyBox({
|
|
|
|
|
// sources: {
|
|
|
|
|
// positiveX: 'http://support.supermap.com.cn:8090/webgl/Cesium/examples/webgl/images/SkyBox/bluesky/Right.jpg',
|
|
|
|
|
// negativeX: 'http://support.supermap.com.cn:8090/webgl/Cesium/examples/webgl/images/SkyBox/bluesky/Left.jpg',
|
|
|
|
|
// positiveY: 'http://support.supermap.com.cn:8090/webgl/Cesium/examples/webgl/images/SkyBox/bluesky/Front.jpg',
|
|
|
|
|
// negativeY: 'http://support.supermap.com.cn:8090/webgl/Cesium/examples/webgl/images/SkyBox/bluesky/Back.jpg',
|
|
|
|
|
// positiveZ: 'http://support.supermap.com.cn:8090/webgl/Cesium/examples/webgl/images/SkyBox/bluesky/Up.jpg',
|
|
|
|
|
// negativeZ: 'http://support.supermap.com.cn:8090/webgl/Cesium/examples/webgl/images/SkyBox/bluesky/Down.jpg'
|
|
|
|
|
// }
|
|
|
|
|
// })
|
|
|
|
|
// viewer.scene.skyBox = sunSkyBox;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (data.baseLayerObj.type === obj.type) return false;
|
|
|
|
|
@ -1346,10 +1346,19 @@
|
|
|
|
|
}
|
|
|
|
|
switch (type) {
|
|
|
|
|
case "BINGMAP":
|
|
|
|
|
imageryProvider = new Cesium.BingMapsImageryProvider({url: url, key: BING_MAP_KEY});
|
|
|
|
|
// imageryProvider = new Cesium.BingMapsImageryProvider({url: url, key: BING_MAP_KEY});
|
|
|
|
|
let urlr1 ='http://{s}.tianditu.com/img_w/wmts?service=wmts&request=GetTile&version=1.0.0&LAYER=img&tileMatrixSet=w&TileMatrix={TileMatrix}&TileRow={TileRow}&TileCol={TileCol}&style=default&format=tiles&tk='+TDT_KEY
|
|
|
|
|
imageryProvider = new Cesium.WebMapTileServiceImageryProvider({
|
|
|
|
|
url: urlr1,
|
|
|
|
|
layer: 'name',
|
|
|
|
|
style: "default",
|
|
|
|
|
format: "image/jpeg",
|
|
|
|
|
tileMatrixSetID: "w",
|
|
|
|
|
show: false,
|
|
|
|
|
subdomains:['t1','t2','t3','t4','t5','t6','t7','t0']
|
|
|
|
|
});
|
|
|
|
|
break;
|
|
|
|
|
case "TIANDITU":
|
|
|
|
|
|
|
|
|
|
let urlr ='http://{s}.tianditu.com/img_w/wmts?service=wmts&request=GetTile&version=1.0.0&LAYER=img&tileMatrixSet=w&TileMatrix={TileMatrix}&TileRow={TileRow}&TileCol={TileCol}&style=default&format=tiles&tk='+TDT_KEY
|
|
|
|
|
imageryProvider = new Cesium.WebMapTileServiceImageryProvider({
|
|
|
|
|
url: urlr,
|
|
|
|
|
@ -1386,11 +1395,12 @@
|
|
|
|
|
imageryLayerCollection.remove(layer);
|
|
|
|
|
|
|
|
|
|
viewer.terrainProvider = new Cesium.CesiumTerrainProvider({
|
|
|
|
|
url : "http://223.99.16.253:8090/iserver/services/3D-fxdxt/rest/realspace/datas/费县%40fxdxt",
|
|
|
|
|
url : "http://123.132.248.154:6045/iserver/services/3D-fxdxt/rest/realspace/datas/费县%40fxdxt",
|
|
|
|
|
isSct : true,//地形服务源自SuperMap iServer发布时需设置isSct为true
|
|
|
|
|
invisibility:true
|
|
|
|
|
});
|
|
|
|
|
viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
|
|
|
|
|
|
|
|
Cesium.Credential.CREDENTIAL = new Cesium.Credential(SUPER_MAP_KEY); //令牌
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -2346,7 +2356,7 @@
|
|
|
|
|
data.roleInfo.mvtbubbleBottom = (canvasHeight - windowPosition.y + 75) + 'px';
|
|
|
|
|
data.roleInfo.mvtbubbleLeft = (windowPosition.x - 50) + 'px';
|
|
|
|
|
})
|
|
|
|
|
methods.handlerSelectedEntityProperties();
|
|
|
|
|
// methods.handlerSelectedEntityProperties();
|
|
|
|
|
}, Cesium.ScreenSpaceEventType.LEFT_CLICK);
|
|
|
|
|
|
|
|
|
|
// 加载地图遮罩
|
|
|
|
|
@ -2602,7 +2612,7 @@
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
} else if (obj.type == "DataService") {
|
|
|
|
|
methods.addDataServe();
|
|
|
|
|
// methods.addDataServe();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|