[josm-dev] Style: Icon depending on way tag?
Paul Hartmann
phaaurlt at googlemail.com
Wed Apr 18 14:29:58 BST 2012
On 04/18/2012 03:14 PM, Frederik Ramm wrote:
> Hi,
>
> there was a little edit war recently where one mapper put maxheight
> on a river node under a bridge, and another mapper removed that again on
> the grounds that JOSM used a road traffic sign icon to display it (which
> made no sense on water).
>
> Is it possible to say "use this icon for maxheight, but only when the
> way on which the node sits is tagged highway=*"?
You can do this with the MapCSS child selector [1], e.g.
way[highway] > node[maxheight] { ... }
The JOSM default style is still in the xml-Format, however, so there is
no easy way to add this rule at the moment.
[1]
<http://josm.openstreetmap.de/wiki/Help/Styles/MapCSSImplementation#Childselector>
Paul
More information about the josm-dev
mailing list