4 ms·
The way I've done this is to use planettiler to generate vector tiles for the whole world and then pack that into a squashfs archive. That way I don't need an a
by SahAssar 4y ago
The way I've done this is to use planettiler to generate vector tiles for the whole world and then pack that into a squashfs archive. That way I don't need an additional program to serve them, and I can regenerate the whole archive every couple of months or so (I don't need the latest data).
- kylebarron 4y agoAn exciting new standard here is pmtiles; a standardized way to store map tiles that can be used via http range requests. I believe planettiler has plans to add pmtiles output support as well. https://github.com/protomaps/PMTiles https://github.com/protomaps/PMTiles
- SahAssar 4y agoNice and looks very interesting! How would PMTiles handle compression? IIRC content-encoding and range requests don't play nice together, currently my server supports uncompressed, gzip and brotli for my tiles (compressed on-demand once and then cached).
- bdon 4y agoFor the next revision of the JS decoder I'm including `fflate` as a dependency so clients can decompress gzipped tile data using JavaScript. https://github.com/protomaps/PMTiles/blob/master/js/package.json#L33 https://github.com/protomaps/PMTiles/blob/master/js/package....