From 93a9b3228d214602a899791992726a01925c5ac4 Mon Sep 17 00:00:00 2001
From: ChenZeping02609 <chenzeping02609@163.com>
Date: 星期四, 13 五月 2021 14:20:07 +0800
Subject: [PATCH] Merge branch 'develop' of http://xearth.cn:6600/r/wuyushui/SewerAndRainNetwork into develop
---
src/components/LayerController/logic/SourcesPollution.js | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/src/components/LayerController/logic/SourcesPollution.js b/src/components/LayerController/logic/SourcesPollution.js
index 6cec839..a701f1c 100644
--- a/src/components/LayerController/logic/SourcesPollution.js
+++ b/src/components/LayerController/logic/SourcesPollution.js
@@ -2,11 +2,9 @@
* 姹℃煋婧�
* */
-// 浣跨敤灏佽鏂规硶
// 璇锋眰鎺ュ彛鏁版嵁
-// import { getSourcesPoll } from '../../../api/request'
-
const mapApi = require('../../../api/mapApi').default
+// 浣跨敤灏佽鏂规硶
const AnimalService = require('../service/AnimalService').default
module.exports = function () {
@@ -15,10 +13,10 @@
L: L,
layer: layer
})
- // getSourcesPoll().then(res => {
- // console.log(res)
- // })
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