From 4d265afb3419bd5cedc6f31ab78d570f6917b520 Mon Sep 17 00:00:00 2001
From: seatonwan9 <seatonwan9@163.com>
Date: 星期五, 21 五月 2021 14:30:44 +0800
Subject: [PATCH] Merge branch 'develop' of http://xearth.cn:6600/r/wuyushui/SewerAndRainNetwork into develop

---
 src/components/LayerController/logic/SourcesPollution.js |   27 +++++++++++++++++----------
 1 files changed, 17 insertions(+), 10 deletions(-)

diff --git a/src/components/LayerController/logic/SourcesPollution.js b/src/components/LayerController/logic/SourcesPollution.js
index 9fd5fd6..27899ce 100644
--- a/src/components/LayerController/logic/SourcesPollution.js
+++ b/src/components/LayerController/logic/SourcesPollution.js
@@ -14,16 +14,23 @@
       layer: layer
     })
     const result = await mapApi.getSourcesPoll()
-    console.log(result)
+    // console.log(result)
     const resultData = result.Result.DataInfo || []
-    console.log(resultData)
-    // 寰幆閬嶅巻鏁版嵁 鏍规嵁杩涜marker 鐨勫垱寤�
-    for (let i = 0; i < resultData.length; i++) {
-      const polygon = L.polygon(resultData, {
-        // totransferData: resultData[i],
-        color: 'red'
-      })
-      layer.addLayer(polygon)
-    }
+    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