fix: improve route visibility and lift offers banner

This commit is contained in:
2026-02-27 22:40:16 -05:00
parent 8e75f24b1e
commit 1cd83f5fb3
3 changed files with 15 additions and 9 deletions

View File

@ -35,7 +35,7 @@ export function useDirectionsRoute() {
return;
}
limpiarRuta();
// NOTA: No llamamos a limpiarRuta() aquí para poder encadenar llamadas (dibujar fondo + trazado activo)
estasCargando.value = true;
errorRuta.value = null;
@ -98,9 +98,9 @@ export function useDirectionsRoute() {
const polyline = new google.maps.Polyline({
path: path,
map: map,
strokeColor: isPast ? '#FDE68A' : '#FBBF24',
strokeWeight: isPast ? 3 : 5,
strokeOpacity: isPast ? 0.4 : 0.95,
strokeColor: isPast ? '#9CA3AF' : '#FBBF24', // Gris para lo lejano, Amarillo para lo cercano
strokeWeight: isPast ? 4 : 6,
strokeOpacity: isPast ? 0.6 : 1.0,
icons: isPast ? [{
icon: { path: 'M 0,-1 0,1', strokeOpacity: 1, scale: 2 },
offset: '0',