From 275ab635e9bb15e083462abf15070d601b577e62 Mon Sep 17 00:00:00 2001
From: 徐旺旺 <11530253@qq.com>
Date: 星期四, 13 五月 2021 14:15:21 +0800
Subject: [PATCH] Merge branch 'develop' of http://xearth.cn:6600/r/wuyushui/SewerAndRainNetwork into develop

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

diff --git a/src/components/LayerController/logic/SourcesPollution.js b/src/components/LayerController/logic/SourcesPollution.js
new file mode 100644
index 0000000..a701f1c
--- /dev/null
+++ b/src/components/LayerController/logic/SourcesPollution.js
@@ -0,0 +1,22 @@
+/**
+ * 姹℃煋婧�
+ *  */
+
+// 璇锋眰鎺ュ彛鏁版嵁
+const mapApi = require('../../../api/mapApi').default
+// 浣跨敤灏佽鏂规硶
+const AnimalService = require('../service/AnimalService').default
+
+module.exports = function () {
+  this.init = async (layer, L) => {
+    this.animalService = new AnimalService({
+      L: L,
+      layer: layer
+    })
+    const result = await mapApi.getSourcesPoll()
+    console.log(result)
+    const resultData = result.Result.DataInfo || []
+    const polygon = L.polygon(resultData, { color: 'yellow' })
+    polygon.addTo(layer)
+  }
+}

--
Gitblit v1.8.0