Fix: Restore bus stop markers on route selection with yellow styling

This commit is contained in:
2026-03-01 21:34:36 -05:00
parent 7ca3fd51f7
commit 545cefd019

View File

@ -4,6 +4,7 @@ import { useDirectionsRoute } from './useDirectionsRoute'
import { useParadaCercana } from './useParadaCercana' import { useParadaCercana } from './useParadaCercana'
import type { BusStop } from '@/types' import type { BusStop } from '@/types'
import { useRouteStore } from '@/stores/route' import { useRouteStore } from '@/stores/route'
import { useGoogleMaps } from './useGoogleMaps'
export const useFlujoPrincipal = () => { export const useFlujoPrincipal = () => {
const { limpiarMapa } = useMapState() const { limpiarMapa } = useMapState()
@ -106,25 +107,21 @@ export const useFlujoPrincipal = () => {
} }
} }
// ── PASO 6: Marcador de parada cercana (ELIMINADO por petición del usuario para mantener mapa limpio) ──────────────── // ── PASO 6: Dibujar marcadores de todas las paradas (Restaurado) ──────────
/* const { addCleanMarker } = useGoogleMaps()
registrarMarker( paradasFormateadas.forEach((p, i) => {
new google.maps.Marker({ const esCercana = i === idx;
position: { lat: paradaCercanaFound.latitude, lng: paradaCercanaFound.longitude }, const esPasada = idx !== -1 && i < idx;
map,
icon: { addCleanMarker(
path: google.maps.SymbolPath.CIRCLE, { lat: p.latitud, lng: p.longitud },
fillColor: '#F59E0B', p.nombre,
fillOpacity: 1, esCercana ? 'cercana' : (esPasada ? 'pasada' : 'normal'),
strokeColor: '#FFFFFF', () => {
strokeWeight: 3, console.log(`Click en parada: ${p.nombre}`);
scale: 12 }
}, );
title: paradaCercanaFound.name, });
zIndex: 10
})
)
*/
// ── PASO 7: Pulso animado en ubicación del usuario ──── // ── PASO 7: Pulso animado en ubicación del usuario ────
dibujarPulsoUsuario(ubicacion, map) dibujarPulsoUsuario(ubicacion, map)