Explorar o código

优化摄像头图层移除

yangqishu hai 4 meses
pai
achega
d90146e05a
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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.typeVal = '1'
       this.monitorList = []
+      if (graphicsLayer) {
+        window.map.removeLayer(graphicsLayer)
+      }
     }
   }
 }