feat: add map rotation controls (90° left/right/reset) in map visualization
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user