aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/app/routes
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/app/routes')
-rw-r--r--src/frontend/app/routes/map.tsx7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/frontend/app/routes/map.tsx b/src/frontend/app/routes/map.tsx
index ef3f625..cdf3033 100644
--- a/src/frontend/app/routes/map.tsx
+++ b/src/frontend/app/routes/map.tsx
@@ -108,6 +108,11 @@ export default function StopMap() {
const map = mapRef.current.getMap();
if (!map || map.hasImage(e.id)) return;
+ // Log warning for our own icons if they are missing
+ if (e.id.startsWith("stop-")) {
+ console.warn(`Missing icon image: ${e.id}`);
+ }
+
// Add a transparent 1x1 placeholder to prevent repeated warnings
map.addImage(e.id, {
width: 1,
@@ -168,7 +173,7 @@ export default function StopMap() {
<Map
mapStyle={mapStyle}
style={{ width: "100%", height: "100%" }}
- interactiveLayerIds={["stops"]}
+ interactiveLayerIds={["stops", "stops-label"]}
onClick={onMapClick}
minZoom={11}
scrollZoom