|
|
@@ -437,7 +437,6 @@ export default {
|
|
|
this.switchWindLayer();
|
|
|
this.showAllStation(viewer, allStationJson.station);
|
|
|
this.initGeoJsonData();
|
|
|
- console.log(333, this.viewer.imageryLayers);
|
|
|
},
|
|
|
|
|
|
// 初始化地形
|
|
|
@@ -473,23 +472,8 @@ export default {
|
|
|
|
|
|
// this.viewer.imageryLayers.addImageryProvider(imageryProvider);
|
|
|
|
|
|
- // this.viewer.scene.globe.depthTestAgainstTerrain = true; //地形遮挡效果开关,打开后地形会遮挡看不到的区域
|
|
|
- this.viewer.scene.globe.enableLighting = true; //对大气和雾启用动态照明效果
|
|
|
- },
|
|
|
-
|
|
|
- // 初始化底图
|
|
|
- async initCesiumBaseMapImage() {
|
|
|
- const imageryProvider = await new Cesium.UrlTemplateImageryProvider({
|
|
|
- // url: "https://webst02.is.autonavi.com/appmaptile?style=6&x={x}&y={y}&z={z}",
|
|
|
- // url: "http://localhost:3007/tiles/map/{z}/{x}/{y}",
|
|
|
- url: "./public/static/ditu/{z}/{x}/{y}.png",
|
|
|
- credit: "影像地图",
|
|
|
- });
|
|
|
- imageryProvider.alpha = 0.55; // 透明度
|
|
|
- imageryProvider.brightness = 1; // 亮度
|
|
|
- imageryProvider.contrast = 1; // 对比度
|
|
|
-
|
|
|
- this.viewer.imageryLayers.addImageryProvider(imageryProvider);
|
|
|
+ // this.viewer.scene.globe.depthTestAgainstTerrain = true; //地形遮挡效果开关,打开后 地形会遮挡看不到的区域
|
|
|
+ this.viewer.scene.globe.enableLighting = true; //对大气和雾启用动态照明效
|
|
|
},
|
|
|
|
|
|
// 初始化地形
|
|
|
@@ -531,9 +515,9 @@ export default {
|
|
|
// 初始化底图
|
|
|
async initCesiumBaseMapImage() {
|
|
|
const imageryProvider = await new Cesium.UrlTemplateImageryProvider({
|
|
|
- // url: "https://webst02.is.autonavi.com/appmaptile?style=6&x={x}&y={y}&z={z}",
|
|
|
+ url: "https://webst02.is.autonavi.com/appmaptile?style=6&x={x}&y={y}&z={z}",
|
|
|
// url: "http://localhost:3007/tiles/map/{z}/{x}/{y}",
|
|
|
- url: "./public/static/ditu/{z}/{x}/{y}.png",
|
|
|
+ // url: "./public/static/ditu/{z}/{x}/{y}.png",
|
|
|
credit: "影像地图",
|
|
|
});
|
|
|
imageryProvider.alpha = 0.55; // 透明度
|