From 3d24a50891e174d593738aca14c43dfaf8f071b6 Mon Sep 17 00:00:00 2001
From: 徐旺旺 <11530253@qq.com>
Date: 星期三, 07 四月 2021 17:57:31 +0800
Subject: [PATCH] 去掉偏移

---
 src/components/LayerController/logic/WasteGas.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/components/LayerController/logic/WasteGas.js b/src/components/LayerController/logic/WasteGas.js
index e9f3aeb..eebddfc 100644
--- a/src/components/LayerController/logic/WasteGas.js
+++ b/src/components/LayerController/logic/WasteGas.js
@@ -20,6 +20,7 @@
   this.init = async (layer, L) => {
     this.animalService = new AnimalService({ L: L, layer: layer })
     const res = await mapApi.getWasteGas()
+    // console.log(res)
     const data = res.Result.DataInfo || {}
     // console.log(data)
     for (let i = 0; i < data.length; i++) {
@@ -39,8 +40,7 @@
         test: data[i],
         icon: L.icon({
           iconUrl: iconUrl,
-          iconSize: [20, 35],
-          iconAnchor: [10, 20]
+          iconSize: [20, 20]
         })
       })
       layer.addLayer(marker)

--
Gitblit v1.8.0