From 05f6eb0aaa7914289b60e87ee7fdc2aa357b36cb Mon Sep 17 00:00:00 2001 From: chenzeping <ChenZeping02609@163.com> Date: 星期三, 07 四月 2021 18:07:49 +0800 Subject: [PATCH] Merge branch 'develop' of http://xearth.cn:6600/r/wuyushui/SewerAndRainNetwork into develop --- src/components/LayerController/logic/WasteWater.js | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/LayerController/logic/WasteWater.js b/src/components/LayerController/logic/WasteWater.js index b6bbf06..c3bccaf 100644 --- a/src/components/LayerController/logic/WasteWater.js +++ b/src/components/LayerController/logic/WasteWater.js @@ -33,12 +33,12 @@ // 瀹氫箟绫诲瀷 鐢ㄦ潵鍖哄垎鏁版嵁鐨勪笉鍚� 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], - iconAnchor: [25, 25] + iconSize: [20, 20], + 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