basic offline map fallback #115

Open
opened 2026-10-04 23:01:11 +02:00 by adam · 1 comment
Owner

I was thinking we could add a very basic world map (countries, coastlines, major cities) to the offline tile fallback, rendered client-side with Canvas, so users can still differentiate regions and get basic geographic orientation when OpenStreetMap tiles are unavailable.

The idea is to be rendered client-side using Canvas 2D API (the same technology already being used), so it wouldn't require external services. The data would be embedded as simplified GeoJSON in the JavaScript bundle.

the trade-offs to consider is the Bundle size (GPT estimate: 50-200KB).

So maybe make it a downloadable part on startup and keep it on the git repository?
that way the docker images will stay small and the repository cloning deployment will have it directly available.

I was thinking we could add a very basic world map (countries, coastlines, major cities) to the offline tile fallback, rendered client-side with Canvas, so users can still differentiate regions and get basic geographic orientation when OpenStreetMap tiles are unavailable. The idea is to be rendered client-side using Canvas 2D API (the same technology already being used), so it wouldn't require external services. The data would be embedded as simplified GeoJSON in the JavaScript bundle. the trade-offs to consider is the Bundle size (GPT estimate: 50-200KB). So maybe make it a downloadable part on startup and keep it on the git repository? that way the docker images will stay small and the repository cloning deployment will have it directly available. <!-- github-sync-id:3737906199 -->
Author
Owner

We already have a fallback that renders placeholder tiles. We should reduce the timeout though.

I don't think it's realistic to host our own base layer unless we consider something like versatiles see #195

We already have a fallback that renders placeholder tiles. We should reduce the timeout though. I don't think it's realistic to host our own base layer unless we consider something like versatiles see #195 <!-- github-comment-id:3664525629 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/potato-mesh#115