Parcourir la source

优化摄像头图层移除

yangqishu il y a 3 mois
Parent
commit
d90146e05a
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      src/views/water-station-popup/index.vue

+ 3 - 0
src/views/water-station-popup/index.vue

@@ -397,6 +397,9 @@ export default {
       this.radius = ''
       this.radius = ''
       this.typeVal = '1'
       this.typeVal = '1'
       this.monitorList = []
       this.monitorList = []
+      if (graphicsLayer) {
+        window.map.removeLayer(graphicsLayer)
+      }
     }
     }
   }
   }
 }
 }