Browse Source

Merge branch 'master' of http://114.55.67.98:8070/Natural_p1/CSPON

songxy 2 months ago
parent
commit
5c2a19ba55
1 changed files with 10 additions and 1 deletions
  1. 10 1
      web_ui/src/views/znzt-land/AiZtzsDetail.vue

+ 10 - 1
web_ui/src/views/znzt-land/AiZtzsDetail.vue

@@ -426,6 +426,7 @@ export default {
     this.$nextTick(() => {
       this.activeIndex = 0;
       this.initMap();
+      // this.openYjjbnt();
       // this.addXzqLayer();
       // this.bindPopup();
       // this.closeXzqLayer();
@@ -1058,7 +1059,7 @@ export default {
         this.map.removeLayer(this.xzqLayer);
         this.xzqLayer = null;
       }
-      let layer= L.geoJSON(xsq, {
+      let layer = L.geoJSON(xsq, {
           style: function (feature) {
             return { color: "blue", fillOpacity: 0 };
           },
@@ -1081,6 +1082,7 @@ export default {
         this.xzqLayer.closePopup();
         this.map.removeLayer(this.xzqLayer);
         this.xzqLayer = null;
+        this.closeYjjbnt();
       }
     },
     locationByGeojson(geojson, name) {
@@ -1368,6 +1370,13 @@ export default {
         this.switchMapLayer(yjjbntLayer);
       }
     },
+    closeYjjbnt() {
+      let yjjbntLayer =  this.layers[5].layers[0];
+      if(yjjbntLayer.checked) {
+        yjjbntLayer.checked = false;
+        this.switchMapLayer(yjjbntLayer);
+      }
+    },
     //所有地块仿百度地图绘制
     showXgdkCenterPoint() {
       if (this.dkMarkerLayer) {