diff --git a/public/configJson/map.json b/public/configJson/map.json index fd67232..67f0d19 100644 --- a/public/configJson/map.json +++ b/public/configJson/map.json @@ -76,6 +76,26 @@ } ], "show": true + }, + { + "id": 2022, + "pid": 10, + "name": "天地图电子", + "icon": "https://data.mars3d.cn/img/thumbnail/basemap/tdt_vec.png", + "type": "group", + "layers": [ + { + "name": "底图", + "type": "tdt", + "layer": "vec_d" + }, + { + "name": "注记", + "type": "tdt", + "layer": "vec_z" + } + ], + "show": false } ], "layers": [] diff --git a/src/views/contentData/Footer/index.vue b/src/views/contentData/Footer/index.vue index cd7b00f..d1189b2 100644 --- a/src/views/contentData/Footer/index.vue +++ b/src/views/contentData/Footer/index.vue @@ -29,12 +29,14 @@ export default { mounted() {}, methods: { switchMap(value) { - console.log(value); if (value === 1) { + console.log(window.marsMap, "window.marsMap"); + window.marsMap.basemap = 2022; window.marsMap.scene.morphTo2D(); this.$refs.leftBtn.style.background = `url(${require("@/assets/img/left-hover.png")})`; this.$refs.rightBtn.style.background = `url(${require("@/assets/img/right-nohover.png")})`; } else { + window.marsMap.basemap = 2021; window.marsMap.scene.morphTo3D(); this.$refs.leftBtn.style.background = `url(${require("@/assets/img/left-nohover.png")})`; this.$refs.rightBtn.style.background = `url(${require("@/assets/img/right-hover.png")})`;