Palats / mapshot

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

Additional Layers #36

Open commanderguy3001 opened 10 months ago

commanderguy3001 commented 10 months ago

it would be really cool to have different layers that overlay on top of the main map, to display things like pollution and/or the power grid. Doing this should be relatively easy by just reading the respective data in lua, and emitting SVG files that leaflet could display, although you would have to look up the specifics yourself.

Palats commented 10 months ago

It would indeed be nice - it would be a great contribution :)

Fwiw, the API does indeed probably provides enough info:

I would not export in SVG from the Lua mod, but just instead let the Lua code export the data itself (e.g., pollution per chunk) - and then let the javascript do the rendering in browser (whether it is SVG or something else). I suspect I one difficulty would be aligning things properly to the rendered image below.

[I have no plans to work on that for now]