From dac4ce9c559a5ddd3d4666c9ac93d25dde97cacc Mon Sep 17 00:00:00 2001 From: wangqi <magical1908@outlook.com> Date: 星期四, 01 四月 2021 14:07:23 +0800 Subject: [PATCH] 修改函数名大小写 --- src/components/BaseNav/WasteWater/WasteWater.js | 22 +++++++++++----------- 1 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/components/BaseNav/WasteWater/WasteWater.js b/src/components/BaseNav/WasteWater/WasteWater.js index c2f3d6b..1847391 100644 --- a/src/components/BaseNav/WasteWater/WasteWater.js +++ b/src/components/BaseNav/WasteWater/WasteWater.js @@ -30,7 +30,6 @@ DrawWasteWaterContent (data) { // 鍥炬爣鏍峰紡鎵╁睍 const WasteWaterIcon = this.WasteWaterIcon() - // //鍔犺浇鏁版嵁鍓嶅鏋滃瓨鍦ㄥ浘灞傜粍 閭d箞娓呴櫎鎺� if (this.WasteWaterLayerGroup) { this.WasteWaterLayerGroup.clearLayers() @@ -52,16 +51,17 @@ const Icon = new WasteWaterIcon({ iconUrl: iconUrl }) // let url = Icon.options.iconUrl - const marker = this.L.marker.magic([positionX, positionY], { icon: Icon, magic: 'vanishIn' }) + // const marker = this.L.marker.magic([positionX, positionY], { icon: Icon, magic: 'vanishIn' }) // 甯︽樉绀哄姩鐢� + const marker = this.L.marker([positionX, positionY], { icon: Icon }) - marker.bindPopup(() => { - return this.WasteWaterPopup.$el - }, { - className: 's-map-popup', - minWidth: 1000, - closeButton: true, - autoClose: false - }) + // marker.bindPopup(() => { + // return this.WasteWaterPopup.$el + // }, { + // className: 's-map-popup', + // minWidth: 1000, + // closeButton: true, + // autoClose: false + // }) // 鍒掕繃鍑虹幇 灞曠ず鏁版嵁 marker.bindTooltip(data[i].Name, { permanent: true, @@ -74,7 +74,7 @@ try { // console.log(e) this.EffectOfPulse(e.target.getLatLng()) - this.WasteWaterPopup.setDate(data[i]) + this.WasteWaterPopup.setData(data[i]) return this.WasteWaterPopup.$el } catch (error) { console.log(error) -- Gitblit v1.8.0