Legend creation in JOSM

Hi Everyone,
I have been doing power mapping, and I was using a mapcss file which I will tag below to help with the process in JOSM. The question I am trying to ask is, is there a way to create or use a legend in JOSM or externally for the mapcss so that other nontechnical people can join in?

I tried the second approach of manually generating the legend from the mapcss but I hit a blocker with parsing the code in a way that can produce neat readable texts.

Please share your thoughts, even alternative ideas to the approaches listed here are welcome.

here are the links to the repos:
mapcss: grid-mapping-starter-kit/josm-config/transmission_grid_mapping_style.mapcss at main · open-energy-transition/grid-mapping-starter-kit · GitHub

legend generator: GitHub - open-energy-transition/mapcss_legend_generator

1 Like

Selecting a way and read the JOSM Tag/memberships list is time consuming, select adjacent element and read again, comparing, seeing what’s there, …

I made a style, for my own , there so much to see on a carriageway, not getting a hint, what is there. Far from complete but usable, still working on it.

Was making a website legend ( 20% done ), then I backed it in the style.
Going to the website is not ideal.

At a crossing, but for others, what mean all those colors and icons.
I looked at till what zoomlevel I was drawing in and used the lower levels to give a legend. Draw in till 24 and legend on 25 26-.

text


zoomlevel 25

zoomlevel 26-

Or with extra legend images.
zoomlevel 25


Zoomlevel 26-


zoomlevel 25


zoojmlevel 26-

A lot of svg drawing, so that it match other svg

And I made mistakes, you start with something not knowing where it ends.
I have to redo some parts, that means I must redraw 1000 svg, I’m kind of struggling with that. (access symbols on the way) and must make it scalable.

To give you a idea.

I was looking if I can use the mapcss on a website map, so much time spend in to it, they set me on the path of geostyler. but a mapparser for mapcss is not made as a feature.

Greetings Allroads.

This really helped a lot. Thank you very much