Palats / mapshot

Factorio mod to export maps as zoomable html
Apache License 2.0
77 stars 12 forks source link

Dynamic render resolution (#23) #37

Closed Soul-Burn closed 7 months ago

Soul-Burn commented 9 months ago

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.

Palats commented 9 months ago

Thanks a lot! I might not have time to look at it in the next few days, but it is not forgotten.

Palats commented 7 months ago

I've added the fixes & update to the CLI in https://github.com/Palats/mapshot/pull/37/commits/60e0229e78f6992d3b47cc4cbc16e4c36d209a04