Ignore:
Timestamp:
2007-07-14T23:25:09+02:00 (17 years ago)
Author:
ulf
Message:

make it possible to have both an icon and an area for the same key/value pair (in a single or two rules - as you like). I've used it for amenity=parking, but this will probably be useful for other key/values as well.

Mixing area and line is still not possible, basically because JOSM core doesn't make a difference here (it's both just a way for JOSM). Fortunately, rules with both area and line possible are pretty rare.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/mappaint/styles/standard/elemstyles.xml

    r3583 r3590  
    994. area attributes
    1010                - colour
    11 5. amenity attributes
     115. icon attributes
    1212                - icon path to icon , relative from where this file is
     13
     14Using both area and line attributes for the same key/value pair doesn't work!
    1315-->
    1416
     
    712714                <condition k="amenity" v="parking" />
    713715                <icon annotate="true" src="carpark.png" />
    714         <scale_min>1</scale_min>
    715         <scale_max>50000</scale_max>
    716         </rule>
    717 
    718 <!-- enabling parking areas will hide single parking nodes COMPLETELY.
    719      unless this is fixed in mappaint, disable the area for now!
    720         <rule>
    721                 <condition k="amenity" v="parking" />
    722                 <icon annotate="true" src="carpark.png" />
    723716                <area colour="#f7efb7"/>
    724717        <scale_min>1</scale_min>
    725718        <scale_max>50000</scale_max>
    726719        </rule>
    727 -->
    728720
    729721        <rule>
Note: See TracChangeset for help on using the changeset viewer.