2 comments

[ 0.22 ms ] story [ 19.8 ms ] thread
I just used this, the examples are difficult depending on where you start. Here is a quick intro. It's a way to serve small or significant portions of the map from a single file (known as pmtiles file) with HTTP range requests (no wasted bits).

1. They have a great [1] tool that allows you to draw a polygon and generate a pmtiles file for only a particular region. It requires a free account to actually download the pmtiles file, sometimes the download button appears a bit late, but be patient.

2. Then they have a MapLibre example here of how to use the pmtiles file to render it on browser: https://protomaps.github.io/basemaps/

Once you know these details it's a nice tool.

[1]: https://app.protomaps.com/downloads/small_map