Closed Soul-Burn closed 7 months ago
Thanks a lot! I might not have time to look at it in the next few days, but it is not forgotten.
I've added the fixes & update to the CLI in https://github.com/Palats/mapshot/pull/37/commits/60e0229e78f6992d3b47cc4cbc16e4c36d209a04
Added min jpg quality when tile has no relevant entities. When value 0 is used, the tile is skipped. Leaflet.fallback is used on frontend code to support this.
The idea here is that the user has the option to either generate all tiles, some with lower JPG quality to reduce size, or skipping them entirely and letting the frontend fall back to the lower level tiles.
I have tested this locally by manually modifying
generated.lua
, as I do not have the go framework to generate them properly.