This commit is contained in:
qsh
2024-07-05 15:18:51 +08:00
parent e1ff8213bf
commit ab0c770167
6 changed files with 407 additions and 109 deletions

View File

@@ -485,7 +485,7 @@ function addmark(lat, lng, AMap) {
offset: [-16, -32]
})
dialogMap.value.add(marker.value)
dialogMap.value.setCenter([lat, lng], '', 500)
dialogMap.value.setCenter([lat, lng], true)
getNearbySchool({ lat: lng, lng: lat })
}
function removeMarker() {
@@ -557,7 +557,6 @@ function currentSelect(val) {
lat: val.location?.lat
}
addmark(val.location?.lng, val.location?.lat, aMap.value)
dialogMap.value.setCenter([val.location?.lng, val.location?.lat], '', 500)
regeoCode(val.location?.lng, val.location?.lat)
}
}