News for hackers. Stuff that matters.
Re:Organic Maps by maelito on Sunday July 05, 2026 @12:52PM (#48795690)
Yes it's planned. Should work in theory, but no one tried before.

Maps are so often done as native apps that to my knowledge no one tried to just use the PWA capabilities to cache tiles on the Web. Of course what's hard is cache invalidation. Does the user want to update the tiles ? Never ? Daily, weekly ? Only some regions ? Or manually ?

Here's an issue about that : https://codeberg.org/cartes/web/issues/1078

It's in French, unfortunately Codeberg has no auto-translate capabilities yet.

Re:Organic Maps by bpev on Sunday July 05, 2026 @01:47PM (#48796225)
FWIW, I have an experimental open-source implementation of offline-capable PWA protomaps. Haven't advertised it much, because I haven't sorted out performance (particularly on mobile), and it's a bit buggy still. Also, don't have cache invalidation. But it does work. Usually. xD

app: https://maps.bpev.me

source: https://tangled.org/bpev.me/maps

Based on results from indexeddb pmtiles work:

https://github.com/jtbaker/pmtiles-offline

https://github.com/protomaps/PMTiles/issues/395

Re:Organic Maps by maelito on Sunday July 05, 2026 @02:18PM (#48796514)
Awesome, thanks for the links.
Re:Organic Maps by maelito on Sunday July 05, 2026 @02:24PM (#48796576)
Funny : there's another Ben that did his "Ben maps". https://benmaps.fr
Re:Organic Maps by bpev on Sunday July 05, 2026 @02:34PM (#48796686)
What can I say? Bens like maps I guess.
Re:Organic Maps by maelito on Monday July 06, 2026 @04:51AM (#48802224)
Did you explore the solution of just caching the pmtiles requests responses as well, instead of IndexedDb ?
Re:Organic Maps by bpev on Monday July 06, 2026 @04:59AM (#48802265)
I didn't dig too deeply into it, because explicitly storing locally just gives a bit more control. Also, since I was kind of imitating the style of Organic Maps, I wanted to give the ability to download entire tiles. I view caching responses more like a performance enhancement, whereas I wanted explicit offline support.
Re:Organic Maps by maelito on Monday July 06, 2026 @09:19AM (#48804209)
That makes sens. Both features combined would be cool. In any case, a cache invalidation feature should be always visible to the user, so that he knows that clicking this button will switch to online mode.