Changeset 1360 in josm for trunk/presets


Ignore:
Timestamp:
2009-02-01T15:39:33+01:00 (13 years ago)
Author:
stoecker
Message:

better integration of type handling in presets

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/presets/presets.xml

    r1358 r1360  
    88-->
    99<!--
     10item:
     11  name: the text to display
     12  icon: the icon to display
     13  type: the data types - way,node,relation,closedway (separated by comma)
     14
    1015link: link to the relating map features website
    1116
     
    3540  default: ticked on/off
    3641  delete_if_empty: true/false
     42
     43See also http://josm.openstreetmap.de/wiki/TaggingPresets.
    3744-->
    3845<annotations>
    3946    <group name="Streets" icon="presets/way_secondary.png">
    40         <item name="Motorway" icon="presets/motorway.png">
     47        <item name="Motorway" icon="presets/motorway.png" type="way">
    4148            <link href="http://wiki.openstreetmap.org/wiki/Tag:highway=motorway"
    4249                  de:href="http://wiki.openstreetmap.org/wiki/DE:Tag:highway=motorway" />
     
    5764            </optional>
    5865        </item>
    59         <item name="Motorway Link" icon="presets/motorway.png">
     66        <item name="Motorway Link" icon="presets/motorway.png" type="way">
    6067            <link href="http://wiki.openstreetmap.org/wiki/Tag:highway=motorway_link"
    6168                  de:href="http://wiki.openstreetmap.org/wiki/DE:Tag:highway=motorway_link" />
     
    7481            </optional>
    7582        </item>
    76         <item name="Trunk" icon="presets/trunk.png">
     83        <item name="Trunk" icon="presets/trunk.png" type="way">
    7784            <link href="http://wiki.openstreetmap.org/wiki/Tag:highway=trunk"
    7885                  de:href="http://wiki.openstreetmap.org/wiki/DE:Tag:highway=trunk" />
     
    93100            </optional>
    94101        </item>
    95         <item name="Trunk Link" icon="presets/trunk.png">
     102        <item name="Trunk Link" icon="presets/trunk.png" type="way">
    96103            <link href="http://wiki.openstreetmap.org/wiki/Tag:highway=trunk_link"
    97104                  de:href="http://wiki.openstreetmap.org/wiki/DE:Tag:highway=trunk_link"/>
     
    112119        </item>
    113120        <separator/>
    114         <item name="Primary" icon="presets/way_primary.png">
     121        <item name="Primary" icon="presets/way_primary.png" type="way">
    115122            <link href="http://wiki.openstreetmap.org/wiki/Tag:highway=primary"
    116123                  de:href="http://wiki.openstreetmap.org/wiki/DE:Tag:highway=primary" />
     
    131138            </optional>
    132139        </item>
    133         <item name="Primary Link" icon="presets/way_primary.png">
     140        <item name="Primary Link" icon="presets/way_primary.png" type="way">
    134141            <label text="Edit a Primary Link" />
    135142            <space />
     
    146153            </optional>
    147154        </item>
    148         <item name="Secondary" icon="presets/way_secondary.png">
     155        <item name="Secondary" icon="presets/way_secondary.png" type="way">
    149156            <link href="http://wiki.openstreetmap.org/wiki/Tag:highway=secondary"
    150157                  de:href="http://wiki.openstreetmap.org/wiki/DE:Tag:highway=secondary"
     
    166173            </optional>
    167174        </item>
    168         <item name="Tertiary" icon="presets/way_tertiary.png">
     175        <item name="Tertiary" icon="presets/way_tertiary.png" type="way">
    169176            <link href="http://wiki.openstreetmap.org/wiki/Tag:highway=tertiary"
    170177                  de:href="http://wiki.openstreetmap.org/wiki/DE:Tag:highway=tertiary"
     
    185192            </optional>
    186193        </item>
    187         <item name="Unclassified" icon="presets/way_unclassified.png">
     194        <item name="Unclassified" icon="presets/way_unclassified.png" type="way">
    188195            <link href="http://wiki.openstreetmap.org/wiki/Tag:highway=unclassified"
    189196                  de:href="http://wiki.openstreetmap.org/wiki/DE:Tag:highway=unclassified"
     
    204211            </optional>
    205212        </item>
    206         <item name="Residential" icon="presets/residential.png">
     213        <item name="Residential" icon="presets/residential.png" type="way">
    207214            <link href="http://wiki.openstreetmap.org/wiki/Tag:highway=residential"
    208215                  de:href="http://wiki.openstreetmap.org/wiki/DE:Tag:highway=residential" />
     
    222229            </optional>
    223230        </item>
    224         <item name="Living Street" icon="presets/living_street.png">
     231        <item name="Living Street" icon="presets/living_street.png" type="way">
    225232            <link href="http://wiki.openstreetmap.org/wiki/Tag:highway=living_street"
    226233                  de:href="http://wiki.openstreetmap.org/wiki/DE:Tag:highway=living_street" />
     
    240247            </optional>
    241248        </item>
    242         <item name="Service" icon="presets/way_unclassified.png">
     249        <item name="Service" icon="presets/way_unclassified.png" type="way">
    243250            <link href="http://wiki.openstreetmap.org/wiki/Tag:highway=service"
    244251                  de:href="http://wiki.openstreetmap.org/wiki/DE:Tag:highway=service" />
     
    259266            </optional>
    260267        </item>
    261         <item name="Parking Aisle" icon="presets/way_unclassified.png">
     268        <item name="Parking Aisle" icon="presets/way_unclassified.png" type="way">
    262269            <link href="http://wiki.openstreetmap.org/wiki/Tag:service=parking_aisle"
    263270                  de:href="http://wiki.openstreetmap.org/wiki/DE:Tag:service=parking_aisle"
     
    273280        </item>
    274281        <separator/>
    275         <item name="Road (Unknown Type)" icon="presets/way_unclassified.png">
    276             <link href="http://wiki.openstreetmap.org/wiki/Tag:highway=road" 
     282        <item name="Road (Unknown Type)" icon="presets/way_unclassified.png" type="way">
     283            <link href="http://wiki.openstreetmap.org/wiki/Tag:highway=road"
    277284                  de:href="http://wiki.openstreetmap.org/wiki/DE:Tag:highway=road" />
    278285            <label text="Edit a Road of unknown type" />
     
    28642871        </item>
    28652872    </group> <!-- Natural -->
    2866 <!-- FIXME: parameter type and element role not yet supported! -->
    2867 <!-- type should be used for all other items also to say if they are used for nodes/ways -->
     2873<!-- FIXME: element role not yet supported! -->
    28682874    <group name="Relations" icon="presets/empty.png">
    28692875        <item name="Multipolygon" icon="presets/empty.png" type="relation">
Note: See TracChangeset for help on using the changeset viewer.