Revertir sistema de paradas: eliminar apertura automática de ETACard y limpieza por falta de buses; restaurar interacción manual con paradas
This commit is contained in:
@ -239,7 +239,17 @@ async function updateMapMarkers(skipZoom = false) {
|
||||
}
|
||||
|
||||
const selectedRouteObj = routeStore.allRoutes.find(r => r.id === currentRequestRouteId) || { id: currentRequestRouteId, short_name: currentRequestRouteId };
|
||||
await procesarSeleccionDeRuta(selectedRouteObj, stops as BusStop[], map.value, addCleanMarker, skipZoom);
|
||||
await procesarSeleccionDeRuta(
|
||||
selectedRouteObj,
|
||||
stops as BusStop[],
|
||||
map.value,
|
||||
addCleanMarker,
|
||||
skipZoom,
|
||||
(stop: BusStop) => {
|
||||
paradaCercana.value = stop;
|
||||
showETACard.value = true;
|
||||
}
|
||||
);
|
||||
reDrawUserMarker();
|
||||
|
||||
if (routeStore.selectedRouteId !== currentRequestRouteId) return;
|
||||
@ -378,6 +388,8 @@ const sonarHtml = `
|
||||
|
||||
// Watch for route selection changes
|
||||
// Watch for ETA loading to automatically show ETACard if no buses are available
|
||||
// REVERTED: Stop automatic opening and clearing
|
||||
/*
|
||||
watch([etaCargando, () => busesActivos.value.length], ([loading, count]) => {
|
||||
if (!loading && count === 0 && routeStore.selectedRouteId && routeStore.wasSelectedFromMap) {
|
||||
showETACard.value = true;
|
||||
@ -396,6 +408,7 @@ watch([etaCargando, () => busesActivos.value.length], ([loading, count]) => {
|
||||
}, 300);
|
||||
}
|
||||
});
|
||||
*/
|
||||
|
||||
// Watch for route selection changes
|
||||
watch(() => routeStore.selectedRouteId, (routeId) => {
|
||||
@ -492,7 +505,7 @@ watch([() => authStore.userProfile?.auto_location, isLoaded], ([canLocate, loade
|
||||
>
|
||||
<template #extra-triggers>
|
||||
<ArrivalBanner
|
||||
:is-visible="!!(paradaCercana && routeStore.selectedRouteId && !isBannerClosing && routeStore.wasSelectedFromMap && busesActivos.length > 0)"
|
||||
:is-visible="!!(paradaCercana && routeStore.selectedRouteId && !isBannerClosing && routeStore.wasSelectedFromMap)"
|
||||
:stop-name="paradaCercana?.name || ''"
|
||||
:is-loading="etaCargando"
|
||||
:has-active-buses="busesActivos.length > 0"
|
||||
|
||||
Reference in New Issue
Block a user