diff --git a/client/src/components/overlay/RoutePanel.tsx b/client/src/components/overlay/RoutePanel.tsx index 447920a..17e2b25 100644 --- a/client/src/components/overlay/RoutePanel.tsx +++ b/client/src/components/overlay/RoutePanel.tsx @@ -228,6 +228,11 @@ export default function RoutePanel({ currentTime, visible, onSeek }: RoutePanelP // 교량/터널만 표시 const filteredPois = pois.filter(p => p.category === '\uD130\uB110' || p.category === '\uAD50\uB7C9'); + // 시점/종점 측점명 + const sortedByKm = [...validStations].sort((a, b) => stationKm(a.title) - stationKm(b.title)); + const startTitle = sortedByKm[0]?.title ?? ''; + const endTitle = sortedByKm[sortedByKm.length - 1]?.title ?? ''; + return (
{/* Center vertical line */}
+ {/* 시점 측점명 — 상단 */} +
+
+ {startTitle} +
+ + {/* 종점 측점명 — 하단 */} +
+
+ {endTitle} +
+ {/* 교량/터널 POIs */} {filteredPois.map((poi, i) => { const km = poiKm(poi, validStations);