From 2128ad7da9fe16741505a7e4d641cc63cdc232f3 Mon Sep 17 00:00:00 2001 From: miles-grant-ibigroup Date: Wed, 30 Oct 2024 12:14:02 -0400 Subject: [PATCH] support naming and keying transit vehicle overlay --- lib/components/map/default-map.tsx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/lib/components/map/default-map.tsx b/lib/components/map/default-map.tsx index 5548f8171..99caa0490 100644 --- a/lib/components/map/default-map.tsx +++ b/lib/components/map/default-map.tsx @@ -318,6 +318,10 @@ class DefaultMap extends Component { const baseLayerUrls = baseLayersWithNames?.map((bl) => bl.url) const baseLayerNames = baseLayersWithNames?.map((bl) => bl.name) + const routeBasedTransitVehicleOverlayNameOverride = overlays.find( + (o) => o.type === 'vehicles-one-route' + )?.name + return ( - + { getCurrentPosition(intl)