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 | 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