feat(map): ensure full Google Map re-initialization on 'X' click
This commit is contained in:
@ -111,11 +111,8 @@ async function animateAndReload() {
|
|||||||
showETACard.value = false;
|
showETACard.value = false;
|
||||||
routePhase.value = 'idle';
|
routePhase.value = 'idle';
|
||||||
|
|
||||||
if (userCoords.value) {
|
// Recarga completa del mapa de Google
|
||||||
setCenter(userCoords.value.lat, userCoords.value.lng);
|
await initializeMap();
|
||||||
setZoom(16);
|
|
||||||
reDrawUserMarker();
|
|
||||||
}
|
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
isBannerClosing.value = false;
|
isBannerClosing.value = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user