From 2da9964e49e64c02767342d2de675b776e8e6cda Mon Sep 17 00:00:00 2001 From: Ariel Costas Guerrero Date: Mon, 13 Oct 2025 00:14:56 +0200 Subject: Use openfreemapinstead of self-hosting, improve stop display, improve dark mode --- src/frontend/app/routes/map.tsx | 26 ++++++++++++++++++++++++-- src/frontend/app/routes/settings.css | 1 - src/frontend/app/routes/settings.tsx | 8 +++----- 3 files changed, 27 insertions(+), 8 deletions(-) (limited to 'src/frontend/app/routes') diff --git a/src/frontend/app/routes/map.tsx b/src/frontend/app/routes/map.tsx index 5887b9c..56a9c79 100644 --- a/src/frontend/app/routes/map.tsx +++ b/src/frontend/app/routes/map.tsx @@ -73,7 +73,8 @@ export default function StopMap() { }, []); useEffect(() => { - const styleName = "carto"; + //const styleName = "carto"; + const styleName = "openfreemap"; loadStyle(styleName, theme) .then((style) => setMapStyle(style)) .catch((error) => console.error("Failed to load map style:", error)); @@ -158,12 +159,33 @@ export default function StopMap() { source="stops-source" layout={{ "icon-image": "stop", - "icon-size": ["interpolate", ["linear"], ["zoom"], 11, 0.4, 16, 0.8], + "icon-size": ["interpolate", ["linear"], ["zoom"], 11, 0.4, 18, 0.8], "icon-allow-overlap": true, "icon-ignore-placement": true, }} /> + + + {selectedStop && ( (null); - return (

{t("about.title")}

@@ -31,10 +28,11 @@ export default function Settings() { id="theme" className="form-select-inline" value={theme} - onChange={(e) => setTheme(e.target.value as "light" | "dark")} + onChange={(e) => setTheme(e.target.value as Theme)} > +
-- cgit v1.3