Hello, I am currently working on my first mapcss-style to display an icon at the end of a one-way street.
Basically, this also works with:
way[oneway=yes] >[index=-1] node::node267
icon width: 20;
icon-rotation: parent_way_angle() -180deg;
It is displayed on the correct path a little offset from the junction. The problem, which is also logical, if this node is used by 2 ways and both are a one-way street, the icon is only displayed on one of the streets, because of course it overwrites the layer of the node, because it’s called node267 on both streets.
Is there either a way to create a random layer_name for each of the two ways on the node?
I would not like to use repeat-image because I really only have the icon at the end of the way.
I hope I explained it clearly
1 post - 1 participant
Ce sujet de discussion accompagne la publication sur https://community.openstreetmap.org/t/way-icons-with-mapcss-in-josm/102383