From ce17d42203a17120736d796d0e83b3742c4ec441 Mon Sep 17 00:00:00 2001
From: Riku <risaku@163.com>
Date: 星期二, 21 十月 2025 21:54:52 +0800
Subject: [PATCH] 2025.10.21
---
src/utils/map/marks.js | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/utils/map/marks.js b/src/utils/map/marks.js
index 03ebbc5..0b1ccce 100644
--- a/src/utils/map/marks.js
+++ b/src/utils/map/marks.js
@@ -86,7 +86,7 @@
* @param {boolean} collision 鏍囨敞閬胯
* @returns
*/
- createLabelMarks(img, dataList, collision = true) {
+ createLabelMarks(img, dataList, collision = true, showTxt = true) {
// eslint-disable-next-line no-undef
const layer = new AMap.LabelsLayer({
zooms: [3, 20],
@@ -119,7 +119,7 @@
retina: true
},
text: {
- content: data.name,
+ content: showTxt ? data.name : '',
direction: 'top',
offset: [0, -5],
style: {
--
Gitblit v1.9.3