From 9a3296d09777fbde9a11979db867c7597919c62c Mon Sep 17 00:00:00 2001
From: wangqi <magical1908@outlook.com>
Date: 星期三, 07 四月 2021 18:02:04 +0800
Subject: [PATCH] 弹窗出现位置缩小
---
src/components/LayerController/logic/WasteGas.js | 4 ++--
src/components/LayerController/logic/WasteWater.js | 4 ++--
src/components/LayerController/logic/SolidWaste.js | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/components/LayerController/logic/SolidWaste.js b/src/components/LayerController/logic/SolidWaste.js
index ac5807f..ea995ac 100644
--- a/src/components/LayerController/logic/SolidWaste.js
+++ b/src/components/LayerController/logic/SolidWaste.js
@@ -40,7 +40,7 @@
icon: L.icon({
iconUrl: iconUrl,
iconSize: [20, 20],
- iconAnchor: [25, 25]
+ iconAnchor: [10, 10]
})
})
layer.addLayer(marker)
@@ -88,7 +88,7 @@
// 閫氳繃鏂规硶 鍚戠粦瀹氬脊妗嗕紶閫掓暟鎹�
instance.setData(resultBasic.Result.DataInfo, resultDetailed.Result.DataInfo, 'gufei')
/* flyTo()寮瑰嚭妗嗗钩绉讳簨浠� */
- this.setPanTo(e.latlng, 200)
+ this.setPanTo(e.latlng, 80)
}
// flayTo() 寮规鐨勫彲婊戝姩浜嬩欢
diff --git a/src/components/LayerController/logic/WasteGas.js b/src/components/LayerController/logic/WasteGas.js
index 2fba1fa..2ac1651 100644
--- a/src/components/LayerController/logic/WasteGas.js
+++ b/src/components/LayerController/logic/WasteGas.js
@@ -41,7 +41,7 @@
icon: L.icon({
iconUrl: iconUrl,
iconSize: [20, 20],
- iconAnchor: [10, 20]
+ iconAnchor: [10, 10]
})
})
layer.addLayer(marker)
@@ -67,7 +67,7 @@
// console.log(e.layer.options.test)
instance.$mount()
document.body.appendChild(instance.$el)
- this.setPanTo(e.latlng, 240)
+ this.setPanTo(e.latlng, 80)
}
// 涓嶅悓绫诲瀷鍥剧墖鍔犺浇
this.differentTypes = (ContrLevel) => {
diff --git a/src/components/LayerController/logic/WasteWater.js b/src/components/LayerController/logic/WasteWater.js
index 374b747..c3bccaf 100644
--- a/src/components/LayerController/logic/WasteWater.js
+++ b/src/components/LayerController/logic/WasteWater.js
@@ -38,7 +38,7 @@
icon: L.icon({
iconUrl: iconUrl,
iconSize: [20, 20],
- iconAnchor: [25, 25]
+ iconAnchor: [10, 10]
})
})
layer.addLayer(marker)
@@ -64,7 +64,7 @@
// console.log(e.layer.options.test)
instance.$mount()
document.body.appendChild(instance.$el)
- this.setPanTo(e.latlng, 240)
+ this.setPanTo(e.latlng, 80)
}
// 鏍规嵁杩斿洖鍊肩殑涓嶅悓鏍囪涓嶅悓鍥剧墖
--
Gitblit v1.8.0