From 38cf65bc29eacb85d23382f53141dcd716a1a770 Mon Sep 17 00:00:00 2001
From: ChenZeping02609 <chenzeping02609@163.com>
Date: 星期四, 13 五月 2021 10:07:44 +0800
Subject: [PATCH] 企业应急

---
 src/components/LayerController/logic/SourcesPollution.js |   11 ++---------
 1 files changed, 2 insertions(+), 9 deletions(-)

diff --git a/src/components/LayerController/logic/SourcesPollution.js b/src/components/LayerController/logic/SourcesPollution.js
index 9fd5fd6..a701f1c 100644
--- a/src/components/LayerController/logic/SourcesPollution.js
+++ b/src/components/LayerController/logic/SourcesPollution.js
@@ -16,14 +16,7 @@
     const result = await mapApi.getSourcesPoll()
     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)
   }
 }

--
Gitblit v1.8.0