From f3df846c549d85db203da42e131665e9dca0f8df Mon Sep 17 00:00:00 2001 From: Jan David Ella Date: Fri, 14 Aug 2026 22:40:15 -0700 Subject: [PATCH 1/2] Removed button and changed map api --- frontend/src/TransitPredictionsPage.js | 34 ++++++-------------------- server/app.py | 27 ++++++++++++++++++++ 2 files changed, 35 insertions(+), 26 deletions(-) diff --git a/frontend/src/TransitPredictionsPage.js b/frontend/src/TransitPredictionsPage.js index aadde15..99e00f6 100644 --- a/frontend/src/TransitPredictionsPage.js +++ b/frontend/src/TransitPredictionsPage.js @@ -76,21 +76,7 @@ export default function TransitPredictionsPage() { window.location.hash = encode(newStop) }; - function maybeRenderCallButton(stopId) { - if (Number.isNaN(Number.parseInt(stopId))) { - return <> - } - return ( -
- - CLICK TO CALL - -
- ); - } + //set default marker icon delete L.Icon.Default.prototype._getIconUrl; @@ -155,7 +141,6 @@ export default function TransitPredictionsPage() { No predictions available at this time ) : (
- {maybeRenderCallButton(stop.id)} {stop.predictions .sort((a, b) => a.route.localeCompare(b.route)) .map((prediction, predictionIndex) => ( @@ -173,16 +158,13 @@ export default function TransitPredictionsPage() { ))} {!!busData.length && busData.map((stop) => ( stop.name === selectedStop && -
- - - - {stop.name} - - +
+