Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional Layers #36

Open
commanderguy3001 opened this issue Oct 17, 2023 · 1 comment
Open

Additional Layers #36

commanderguy3001 opened this issue Oct 17, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@commanderguy3001
Copy link

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 Palats added the enhancement New feature or request label Oct 29, 2023
@Palats
Copy link
Owner

Palats commented Oct 29, 2023

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]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants