This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-10-24 16:18:42 +07:00
parent f0b92d01e1
commit d8fed274f3

View file

@ -112,7 +112,9 @@ async function initializeMap() {
.then((response) => {
// console.log('poi', response.data.address)
poiPlaceName.value = response.data.address
? response.data.address.PlaceName
? response.data.address.PlaceName === ''
? response.data.address.ShortLabel
: response.data.address.PlaceName
: 'ไม่พบข้อมูล'
updateLocation(latitude, longitude, poiPlaceName.value)