From 3b1b5623e44135a8e693698cb7a30adf66d86964 Mon Sep 17 00:00:00 2001
From: 陈泽平 <chenzeping>
Date: 星期二, 18 五月 2021 15:42:33 +0800
Subject: [PATCH] 管线问题修改

---
 src/components/LayerController/logic/SourcesPollution.js |   16 +++++++++++++++-
 1 files changed, 15 insertions(+), 1 deletions(-)

diff --git a/src/components/LayerController/logic/SourcesPollution.js b/src/components/LayerController/logic/SourcesPollution.js
index a701f1c..27899ce 100644
--- a/src/components/LayerController/logic/SourcesPollution.js
+++ b/src/components/LayerController/logic/SourcesPollution.js
@@ -14,9 +14,23 @@
       layer: layer
     })
     const result = await mapApi.getSourcesPoll()
-    console.log(result)
+    // console.log(result)
     const resultData = result.Result.DataInfo || []
     const polygon = L.polygon(resultData, { color: 'yellow' })
     polygon.addTo(layer)
   }
+  this.bindTooltip = (layer) => {
+    return 'layer'
+  }
+  this.click = () => {
+    window.$layer.open({
+      content: {
+        content: 'Popup', // 缁勪欢
+        data: { // 浼犻�掔殑鍙傛暟
+          datas: 'popupDatas'
+        }
+      },
+      title: ''
+    })
+  }
 }

--
Gitblit v1.8.0