浏览代码

优化摄像头图层移除

yangqishu 4 月之前
父节点
当前提交
d90146e05a
共有 1 个文件被更改,包括 3 次插入0 次删除
  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)
+      }
     }
   }
 }