Explorar el Código

优化摄像头图层移除

yangqishu hace 4 meses
padre
commit
d90146e05a
Se han modificado 1 ficheros con 3 adiciones y 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)
+      }
     }
   }
 }