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/line.js | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/src/utils/map/line.js b/src/utils/map/line.js
index 6245983..a4395dd 100644
--- a/src/utils/map/line.js
+++ b/src/utils/map/line.js
@@ -9,7 +9,8 @@
// eslint-disable-next-line no-undef
return new AMap.Polyline({
path: path,
- strokeStyle: 'solid',
+ // strokeStyle: 'solid',
+ strokeStyle: 'dashed',
isOutline: true,
borderWeight: 1,
outlineColor: 'white',
@@ -18,6 +19,12 @@
lineJoin: 'round', // 鎶樼嚎鎷愮偣杩炴帴澶勬牱寮�
showDir: true
});
+}
+
+function drawDirection(path) {
+ const polyline = newPolyline(path, '#ffd82a');
+ map.add(polyline);
+ return polyline;
}
export default {
@@ -105,5 +112,7 @@
map.remove(v);
});
}
- }
+ },
+
+ drawDirection
};
--
Gitblit v1.9.3