feat:完善样式
This commit is contained in:
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user