Palats / mapshot

Factorio mod to export maps as zoomable html
Apache License 2.0
91 stars 16 forks source link

Dynamic render resolution #23

Open Palats opened 2 years ago

Palats commented 2 years ago

As of writing, the whole map is rendered at the same resolution levels. However:

It would be interesting to explore having a more dynamic rendering - with limited resolution where there is nothing of interest and better resolution on player structure for example.

It might not be completely straightforward:

[Original suggestion from Soul-Burn on the mod page]

Palats commented 2 years ago

Regarding Leaflet, there is at least some prior art: https://github.com/ghybs/Leaflet.TileLayer.Fallback. It relies on trying a different resolutions when a tile is not available. It does introduce some extra round trips, but has the advantage of simplicity as it would not require recording what exists and what does not exists, making the whole thing reasonably simple.

Palats commented 10 months ago

https://github.com/Palats/mapshot/commit/9bd101562fe3b61d1c9a6d9f41ba9804a3c83a99 added a way to decrease the quality of tiles with no user entities.