From b620b2f8962a0a1fea3846db83b98704820e16b9 Mon Sep 17 00:00:00 2001
From: 徐旺旺 <11530253@qq.com>
Date: 星期三, 07 四月 2021 17:54:11 +0800
Subject: [PATCH] 修改图标大小

---
 src/components/LayerController/logic/WasteWater.js |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/components/LayerController/logic/WasteWater.js b/src/components/LayerController/logic/WasteWater.js
index 31e0d53..374b747 100644
--- a/src/components/LayerController/logic/WasteWater.js
+++ b/src/components/LayerController/logic/WasteWater.js
@@ -33,11 +33,11 @@
       // 瀹氫箟绫诲瀷 鐢ㄦ潵鍖哄垎鏁版嵁鐨勪笉鍚�
       const testValue = data[i].ContrLevel
       const iconUrl = this.differentTypes(testValue)
-      const marker = L.marker.magic([positionX, positionY], {
+      const marker = L.marker([positionX, positionY], {
         test: data[i],
         icon: L.icon({
           iconUrl: iconUrl,
-          iconSize: [50, 50],
+          iconSize: [20, 20],
           iconAnchor: [25, 25]
         })
       })
@@ -61,7 +61,7 @@
     const PublicBounced = window.Vue.extend(publicBounced)
     const instance = new PublicBounced()
     instance.setWaterData(e.layer.options.test, result.Result.DataInfo, drawback.Result.DataInfo, 'feishui')
-    console.log(e.layer.options.test)
+    // console.log(e.layer.options.test)
     instance.$mount()
     document.body.appendChild(instance.$el)
     this.setPanTo(e.latlng, 240)

--
Gitblit v1.8.0