maxiaoxiao пре 9 месеци
родитељ
комит
a1c5be1b00
1 измењених фајлова са 6 додато и 2 уклоњено
  1. 6 2
      src/views/remote/farmland/index.vue

+ 6 - 2
src/views/remote/farmland/index.vue

@@ -130,6 +130,7 @@ export default {
       },
       curPageResultLayer: null,
       vectorLayer: null,
+      nowId: "",
     };
   },
   mounted() {
@@ -147,6 +148,7 @@ export default {
     tableClick(row) {
       let url = this.newObj.proxypath + row.hsxtif;
       this.$refs.MapView.createMap("split");
+      this.nowId = row.hsxtif;
       console.log(row, "-----", url);
       const source = new GeoTIFF({
         sources: [
@@ -173,6 +175,8 @@ export default {
       //   })
       // });
       window.map["mapDiv"].addLayer(layer);
+      // window.map["mapCon1"].addLayer(layer);
+      // window.map["mapCon2"].addLayer(layer);
     },
     getList() {
       listPcsjXQList(this.queryParams).then((response) => {
@@ -224,7 +228,7 @@ export default {
             }),
           }),
         });
-        window.map["mapDiv"].addLayer(this.vectorLayer);
+        // window.map["mapDiv"].addLayer(this.vectorLayer);
       }
       if (!this.curPageResultLayer) {
         let vectorSource = new VectorSource();
@@ -238,7 +242,7 @@ export default {
             }),
           }),
         });
-        window.map["mapDiv"].addLayer(this.curPageResultLayer);
+        // window.map["mapDiv"].addLayer(this.curPageResultLayer);
       }
     },
   },