feat:完善样式

This commit is contained in:
zjc
2025-03-05 19:59:23 +08:00
parent 21cb9b04ca
commit 5619c9ddfb
5 changed files with 73 additions and 30 deletions

View File

@@ -147,7 +147,6 @@
if (map.value && modelValue.value) {
// 109.645729,31.041203
if (carOverlays.value.length > 0) {
console.log(11111)
// 更新车辆marker位置
let flag = false
for (let i = 0; i < carOverlays.value.length; i++) {
@@ -159,7 +158,7 @@
lat: props.carList[j].lat
})
flag = true
break
continue
}
}
}
@@ -175,11 +174,14 @@
lng: props.carList[i].lng,
lat: props.carList[i].lat
})
currentMarker.value.setPosition({
lng: props.carList[i].lng,
lat: props.carList[i].lat
})
break
}
}
} else {
console.log(2222)
props.carList.map((item, i) => {
if (item.lng && item.lat) {
addMarker(carIcon, [item.lng, item.lat], [36, 50])