From 2370d1787a4095407f021e439c90b58ee6463a90 Mon Sep 17 00:00:00 2001
From: seatonwan9 <seatonwan9@163.com>
Date: 星期二, 20 四月 2021 15:59:58 +0800
Subject: [PATCH] 设置全局tips位置
---
src/components/LayerController/service/LayerFactory.js | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/components/LayerController/service/LayerFactory.js b/src/components/LayerController/service/LayerFactory.js
index adb3d9f..5aedc79 100644
--- a/src/components/LayerController/service/LayerFactory.js
+++ b/src/components/LayerController/service/LayerFactory.js
@@ -55,7 +55,8 @@
var layer = (logic && logic.initLayer && logic.initLayer((this.L))) || this.L.featureGroup({})
if (logic.bindTooltip) {
- layer.bindTooltip(logic.bindTooltip)
+ // 鍏ㄥ眬tips浣嶇疆
+ layer.bindTooltip(logic.bindTooltip, { direction: 'top', offset: [0, -15], sticky: false })
}
// 璋冪敤click浜嬩欢
if (logic.clickListener) {
--
Gitblit v1.8.0