From f19e5267cc23b1c714dc746239864f33ed715dd9 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期五, 05 十二月 2025 17:55:02 +0800
Subject: [PATCH] 完成地图制作任务功能初版

---
 src/utils/map/marks.js |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/utils/map/marks.js b/src/utils/map/marks.js
index 0c3b428..05137fd 100644
--- a/src/utils/map/marks.js
+++ b/src/utils/map/marks.js
@@ -145,7 +145,7 @@
     return layer;
   },
 
-  createMarker({ position, img, label = ' ', extData }) {
+  createMarker({ position, img, title, content, label = '', extData }) {
     //鍒涘缓 AMap.Icon 瀹炰緥锛�
     const icon = new AMap.Icon({
       size: new AMap.Size(30, 30), //鍥炬爣灏哄
@@ -157,7 +157,8 @@
       position: position,
       // offset: new AMap.Pixel(-13, -30),
       icon: icon, //娣诲姞 icon 鍥炬爣 URL
-      title: label,
+      content: content,
+      title: title,
       label: {
         content: label,
         direction: 'bottom'

--
Gitblit v1.9.3