From 3d39880680251c669f7ace41e06bb0c6c537fa2c Mon Sep 17 00:00:00 2001 From: seatonwan9 <seatonwan9@163.com> Date: 星期二, 20 四月 2021 14:08:02 +0800 Subject: [PATCH] 设置全局tips位置 --- src/components/LayerController/logic/WasteWater.js | 3 +-- src/components/LayerController/service/BusiLayerService.js | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/LayerController/logic/WasteWater.js b/src/components/LayerController/logic/WasteWater.js index 2e1205e..d9deccb 100644 --- a/src/components/LayerController/logic/WasteWater.js +++ b/src/components/LayerController/logic/WasteWater.js @@ -58,7 +58,6 @@ this.animalService.pulseEffect(e.latlng) /* 鐐瑰嚮鏁版嵁鐨勬帴鍙h姹� */ this.requestWasteWaterData(e).then(e) - console.log() } this.requestWasteWaterData = async (e) => { // 鍩烘湰淇℃伅 鍜� 璇︾粏淇℃伅 灞曠ず鏁版嵁鎵�闇�鍙傛暟 @@ -67,7 +66,7 @@ // } // 寮规鏍囬 const title = e.layer.options.totransferData.Name - console.log(e.layer.options) + // console.log(e.layer.options) // 鍩烘湰淇℃伅 tabs // const resultBasic = await mapApi.getWasteWater(dataValue) // 鍥捐〃淇℃伅灞曠ず echarts diff --git a/src/components/LayerController/service/BusiLayerService.js b/src/components/LayerController/service/BusiLayerService.js index 0a8f958..65166db 100644 --- a/src/components/LayerController/service/BusiLayerService.js +++ b/src/components/LayerController/service/BusiLayerService.js @@ -22,7 +22,8 @@ var busiLayer = new BusiLayer() busiLayer.init(layer, this.L) if (busiLayer.bindTooltip) { - layer.bindTooltip(busiLayer.bindTooltip) + // 鍏ㄥ眬tips浣嶇疆 + layer.bindTooltip(busiLayer.bindTooltip, { direction: 'top', offset: [0, -15], sticky: false }) } // 璋冪敤click浜嬩欢 if (busiLayer.clickListener) { -- Gitblit v1.8.0