From f99fd37cdbaaa4f09e5b7383442ee264fd332232 Mon Sep 17 00:00:00 2001
From: 徐旺旺 <11530253@qq.com>
Date: 星期六, 08 五月 2021 10:55:37 +0800
Subject: [PATCH] 新增图层点击弹窗开关

---
 src/components/LayerController/service/WmsLayerService.js |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/components/LayerController/service/WmsLayerService.js b/src/components/LayerController/service/WmsLayerService.js
index 032e0f8..9295f45 100644
--- a/src/components/LayerController/service/WmsLayerService.js
+++ b/src/components/LayerController/service/WmsLayerService.js
@@ -76,6 +76,9 @@
 
   clickListener () {
     window.map.on('click', (e) => {
+      if (window.layerFactory.clickSwitch) {
+        return
+      }
       this.featureGroup.clearLayers()
       var point = this.map.latLngToContainerPoint(e.latlng, this.map.getZoom())
       var size = this.map.getSize()

--
Gitblit v1.8.0