diff options
| author | Ariel Costas Guerrero <ariel@costas.dev> | 2025-11-22 19:35:50 +0100 |
|---|---|---|
| committer | Ariel Costas Guerrero <ariel@costas.dev> | 2025-11-22 19:35:50 +0100 |
| commit | 1586cb5c71a1bfea7277eff6039a6a3e742ef7a5 (patch) | |
| tree | 606a42bd54bd8f4bbd2eb8d59f8f4f684bdb6a3f /src/frontend/app | |
| parent | 66c63b1f11f6936c50101c55d5867807960bc618 (diff) | |
Let's see now
Diffstat (limited to 'src/frontend/app')
| -rw-r--r-- | src/frontend/app/routes/map.tsx | 7 |
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 |
