it's gotten much better - but yes the internet is inherently slower in it. some places build intentionally for it so can be fast (duckduckgo in particular)
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.
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.
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)
Cloudflare and most CDNs "support" range requests in that they will download the entire 130GB file for you. Does Bunny do something smarter? Does it deal with overlap? What about cache control? eviction?
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 no reason to be looking for another solution.
https://docs.protomaps.com/deploy/aws perhaps? That's a nice setup but worth noting you're running a web service (Lambda) to translate and cache ZXY HTTP requests to s3 range requests. Much like the Martin web server I settled on.
The OP was talking about making HTTP range requests directly from the client, which is a much different beast.
nice.
reply