aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/app
diff options
context:
space:
mode:
authorAriel Costas Guerrero <ariel@costas.dev>2025-11-22 19:35:50 +0100
committerAriel Costas Guerrero <ariel@costas.dev>2025-11-22 19:35:50 +0100
commit1586cb5c71a1bfea7277eff6039a6a3e742ef7a5 (patch)
tree606a42bd54bd8f4bbd2eb8d59f8f4f684bdb6a3f /src/frontend/app
parent66c63b1f11f6936c50101c55d5867807960bc618 (diff)
Let's see now
Diffstat (limited to 'src/frontend/app')
-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