News for hackers. Stuff that matters.
Re:Protomaps: Self-hosting map tiles has gotten cheap and easy by pluto_modadic on Sunday November 15, 2026 @04:16PM (#50510849)
okay, but what clients work with this approach?
Re:Protomaps: Self-hosting map tiles has gotten cheap and easy by bcye on Sunday November 15, 2026 @04:21PM (#50510895)
There is an npm library that integrates the format into MapLibre (fork of Mapbox) and Leaflet.
Re:Protomaps: Self-hosting map tiles has gotten cheap and easy by perrygeo on Sunday November 15, 2026 @04:25PM (#50510948)
You can use the pmtiles:// protocol in Maplibre GL, requires protomaps.js and a few lines of setup [1]

My experience with it is ... ok. It works. But going directly to cloud storage (s3 in my case) is unpredictable latency and neither the browser nor most servers really cache HTTP range requests granularly, so every tile is another high-latency round trip. Not worth it - I ended up putting Martin tile server in front of it.

I assume someone could write a protomaps adapter in WASM with some smart caching? Until then, Standard GET requests are just easier to cache and perform much better in practice. The downside being you have to run a server or statically generate files.

[1]- https://docs.protomaps.com/pmtiles/maplibre

Re:Protomaps: Self-hosting map tiles has gotten cheap and easy by bcye on Sunday November 15, 2026 @04:34PM (#50511042)
For what it's worth I think latency/reliability varies a lot with provider. Bunny Storage has quite good latency in my experience (100-300ms) and their CDN supports Range caching (from my understanding Cloudflare does too they just limit the size of the file regardless of the Range)
Re:Protomaps: Self-hosting map tiles has gotten cheap and easy by wkrp on Sunday November 15, 2026 @05:01PM (#50511302)
I've had success with using a cache in front of my buckets for great performance. In my case I have raster tiles so they get turned into z/x/y tile filenames and a cloudflare worker pulls that from the full file and caches the result in the region.
Re:Protomaps: Self-hosting map tiles has gotten cheap and easy by notatoad on Sunday November 15, 2026 @08:05PM (#50512777)
we use pmtiles on s3 behind cloudfront, and it seems to work pretty well. maybe not a 100% solution compared to what you'd get from google maps, but good enough that i've got a reason to be looking for another solution.
Re:Protomaps: Self-hosting map tiles has gotten cheap and easy by pstuart on Sunday November 15, 2026 @04:25PM (#50510950)
A quick search showed that this should work with HTTP range requests: https://maplibre.org/
Re:Protomaps: Self-hosting map tiles has gotten cheap and easy by cr125rider on Sunday November 15, 2026 @04:26PM (#50510960)
Protomaps, pmtiles, are actually pretty ubiquitous. Even has a GDAL driver https://gdal.org/en/stable/drivers/vector/pmtiles.html