From 851d91b60b91865f2d6964b2981244cb523aa331 Mon Sep 17 00:00:00 2001
From: 徐旺旺 <11530253@qq.com>
Date: 星期六, 08 五月 2021 10:56:51 +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..3a2f882 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