This commit is contained in:
		
							parent
							
								
									fa48511b0d
								
							
						
					
					
						commit
						6be1c3d672
					
				| 
						 | 
					@ -76,6 +76,26 @@
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
        ],
 | 
					        ],
 | 
				
			||||||
        "show": true
 | 
					        "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": []
 | 
					    "layers": []
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -29,12 +29,14 @@ export default {
 | 
				
			||||||
  mounted() {},
 | 
					  mounted() {},
 | 
				
			||||||
  methods: {
 | 
					  methods: {
 | 
				
			||||||
    switchMap(value) {
 | 
					    switchMap(value) {
 | 
				
			||||||
      console.log(value);
 | 
					 | 
				
			||||||
      if (value === 1) {
 | 
					      if (value === 1) {
 | 
				
			||||||
 | 
					        console.log(window.marsMap, "window.marsMap");
 | 
				
			||||||
 | 
					        window.marsMap.basemap = 2022;
 | 
				
			||||||
        window.marsMap.scene.morphTo2D();
 | 
					        window.marsMap.scene.morphTo2D();
 | 
				
			||||||
        this.$refs.leftBtn.style.background = `url(${require("@/assets/img/left-hover.png")})`;
 | 
					        this.$refs.leftBtn.style.background = `url(${require("@/assets/img/left-hover.png")})`;
 | 
				
			||||||
        this.$refs.rightBtn.style.background = `url(${require("@/assets/img/right-nohover.png")})`;
 | 
					        this.$refs.rightBtn.style.background = `url(${require("@/assets/img/right-nohover.png")})`;
 | 
				
			||||||
      } else {
 | 
					      } else {
 | 
				
			||||||
 | 
					        window.marsMap.basemap = 2021;
 | 
				
			||||||
        window.marsMap.scene.morphTo3D();
 | 
					        window.marsMap.scene.morphTo3D();
 | 
				
			||||||
        this.$refs.leftBtn.style.background = `url(${require("@/assets/img/left-nohover.png")})`;
 | 
					        this.$refs.leftBtn.style.background = `url(${require("@/assets/img/left-nohover.png")})`;
 | 
				
			||||||
        this.$refs.rightBtn.style.background = `url(${require("@/assets/img/right-hover.png")})`;
 | 
					        this.$refs.rightBtn.style.background = `url(${require("@/assets/img/right-hover.png")})`;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue