-
-
+
+
+
![]()
+
+
diff --git a/agv_app/setting.js b/agv_app/setting.js
index 4bc8c6d..6908f49 100644
--- a/agv_app/setting.js
+++ b/agv_app/setting.js
@@ -16,6 +16,7 @@ createApp({
mapLoaded: false,
mapImageUrl: '',
mapMeta: null,
+ mapRotation: 0,
// 点位
points: [],
newPointName: '',
@@ -110,6 +111,9 @@ createApp({
onMapError() {
this.mapMsg = '❌ 地图图像加载失败'
},
+ rotateMap(deg) {
+ this.mapRotation = (this.mapRotation + deg) % 360
+ },
getMapX(coords) {
if (!coords || !this.mapMeta) return 50
const [x, y, yaw] = coords