From 5ca47bf4519b299c4489868f6f3dfc582651d0c6 Mon Sep 17 00:00:00 2001 From: thomas930 Date: Wed, 17 Jan 2024 00:03:33 +0800 Subject: [PATCH] Stop signs of Light Rail routes change from Bus Stop symbol to Railway Station symbol (#137) * Update RouteMap.tsx Stop signs of all Light Rail routes are changed from bus_kmb.svg to mtr.svg * Update RouteMap.tsx Revise Syntax error --- src/components/route-eta/RouteMap.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/components/route-eta/RouteMap.tsx b/src/components/route-eta/RouteMap.tsx index fb749753a139..1ef866bee184 100644 --- a/src/components/route-eta/RouteMap.tsx +++ b/src/components/route-eta/RouteMap.tsx @@ -253,6 +253,14 @@ const StopMarker = ({ active, passed, companies }: StopMarkerProps) => { active ? classes.active : "" } ${passed ? classes.passed : ""}`, }); + } else if (companies.includes("lightRail")) { + return Leaflet.divIcon({ + iconSize: [20, 20], + iconAnchor: [10, 10], + className: `${classes.mtrMarker} ${classes.marker} ${ + active ? classes.active : "" + } ${passed ? classes.passed : ""}`, + }); } else if (companies[0].startsWith("gmb")) { return Leaflet.divIcon({ iconSize: [30, 30],