Critical Fix: Complete rewrite of Auth components to restore visibility, and fix Map user location persistence
This commit is contained in:
@ -347,7 +347,7 @@ function clearMapMarkers() {
|
||||
}
|
||||
|
||||
function reDrawUserMarker() {
|
||||
if (!userCoords.value) return;
|
||||
if (!userCoords.value || !map.value) return;
|
||||
|
||||
// Remove old one if exists (paranoia)
|
||||
if (userMarker.value && typeof userMarker.value.setMap === 'function') {
|
||||
@ -379,6 +379,7 @@ async function updateMapMarkers(skipZoom = false) {
|
||||
// Llamar al procesador de flujo principal, lo cual limpia el mapa y centra.
|
||||
// Usamos skipZoom para evitar la animación intrusiva de búsqueda cuando no es desde el buscador
|
||||
await procesarSeleccionDeRuta(selectedRouteObj, stops as BusStop[], map.value, skipZoom);
|
||||
reDrawUserMarker();
|
||||
|
||||
// ⛔ ABORTAR SI EL USUARIO LIMPIÓ EL MAPA MIENTRAS DIBUJÁBAMOS
|
||||
if (routeStore.selectedRouteId !== currentRequestRouteId) {
|
||||
|
||||
Reference in New Issue
Block a user