[josm-dev] Mappaint hierachical rules in elemstyles.xml already implemented?
Ulf Lamping
ulf.lamping at googlemail.com
Sat Jan 16 03:40:09 GMT 2010
Hi!
IIRC, someone (Dirk?) said mappaint is already able to handle
hierachical rules in elemstyles.xml, something like:
<rule>
<condition k="amenity" v="parking"/>
<icon src="vehicle/parking.png"/>
<rule>
<condition k="parking" v="multi-storey"/>
<icon src="vehicle/parking/multi-storey.png"/>
</rule>
</rule>
So if both tags are set, the "more special multi-storey" rule will fit
before the "more generic parking" rule.
Using the priorities for this is getting a real pain, doesn't work well
and it's also error prone.
Looking at elemstyles.xml I can't find an example.
Am I remembering this wrong?
Regards, ULFL
More information about the josm-dev
mailing list