接口地址修改

main
userName 4 months ago
parent 23569d8b73
commit bc617af8c0

@ -49,7 +49,7 @@ export const MAP_SERVER_CONFIG = [
]
export const ZHENJIE_BORDER_SERVER = "http://123.132.248.154:6045/iserver/services/map-mvt-FeiXianZhenJie12feixianZJ2/restjsr/v1/vectortile/maps/费县镇界_1-2%40feixianZJ"
export const DEFAULT_BASEMAP = [0, 0] // 默认选择的底图类型对于MAP_SERVER_CONFIG的index
export const TDT_KEY = 'b6585bc41ee16251dbe6b1af64f375d9'
export const TDT_KEY = '789e558be762ff832392a0393fd8a4f1'
export const BING_MAP_KEY = 'AmTLTFB9yDa02XCXQcXPPeWFuTiRQpezXihtyD_-67kH4RgYAOv1QSejOjTiGsYG'

@ -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 iServerisScttrue
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();
}

Loading…
Cancel
Save