[josm-dev] Mappaint hierachical rules in elemstyles.xml already implemented?
Ulf Lamping
ulf.lamping at googlemail.com
Mon Jan 18 00:39:05 GMT 2010
Am 16.01.2010 15:34, schrieb Dirk Stöcker:
>
> You above example won't work. What I implemented was boolean AND rules:
>
> <rule>
> <condition k="amenity" v="parking"/>
> <condition k="parking" v="multi-storey"/>
> <icon src="vehicle/parking/multi-storey.png"/>
> </rule>
>
> Much like conditions in XSL, ugly but it works :-)
Somehow ;-)
This prevents a multi-storey icon if the amenity is not tagged (which is
a good thing IMHO.
But this way you still need to deal with priorities to prevent yourself
from unintended hiding of your own rules. Which I would like to avoid
where ever possible, as this is - in my experience - often unnecessarily
confusing :-)
Regards, ULFL
More information about the josm-dev
mailing list