Changeset 6190 in josm for trunk/data


Ignore:
Timestamp:
2013-08-26T01:17:52+02:00 (11 years ago)
Author:
Don-vip
Message:

fix #8973 - presets: allow text attribute on optional item to set custom text + fix traffic_light/pedestrian corssing (modified patch by skyper)

Location:
trunk/data
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/data/defaultpresets.xml

    r6189 r6190  
    10561056                  pt_BR.href="http://wiki.openstreetmap.org/wiki/Pt-br:Tag:highway=traffic_signals"
    10571057                  ru.href="http://wiki.openstreetmap.org/wiki/RU:Tag:highway=traffic_signals" />
     1058            <label text="Edit Traffic Signal" />
     1059            <space />
    10581060            <key key="highway" value="traffic_signals" />
    1059             <optional>
     1061            <optional text="Optional crossing attributes:">
    10601062                 <combo key="crossing" text="Pedestrian crossing type" values="uncontrolled,traffic_signals,island,unmarked,no,unknown" />
     1063                 <combo key="crossing_ref" text="Crossing type name (UK)" values="zebra,pelican,toucan,puffin,pegasus,tiger" />
     1064                 <check key="supervised" text="Crossing attendant" default="off" />
     1065                 <check key="bicycle" text="Cross by bicycle" default="off" />
    10611066                 <check key="horse" text="Cross on horseback" default="off" />
    1062                  <check key="bicycle" text="Cross by bicycle" default="off" />
    1063                  <check key="supervised" text="Crossing attendant" default="off" />
    1064                  <combo key="crossing_ref" text="Crossing type name (UK)" values="zebra,pelican,toucan,puffin,pegasus,tiger" />
    10651067            </optional>
    10661068        </item>
     
    10791081                  ru.href="http://wiki.openstreetmap.org/wiki/RU:Tag:highway=mini_roundabout" />
    10801082            <key key="highway" value="mini_roundabout" />
     1083            <label text="Edit Mini-Roundabout" />
     1084            <space />
    10811085            <combo key="direction" text="Direction" values="clockwise" />
    10821086        </item>
     
    10891093                  pt_BR.href="http://wiki.openstreetmap.org/wiki/Pt-br:Key:crossing"
    10901094                  ru.href="http://wiki.openstreetmap.org/wiki/RU:Key:crossing" />
    1091             <label text="Edit Crossing" />
     1095            <label text="Edit Pedestrian Crossing" />
     1096            <space />
    10921097            <key key="highway" value="crossing" />
    1093             <combo key="crossing" text="Type" values="uncontrolled,traffic_signals,island,unmarked,no,unknown" />
     1098            <combo key="crossing" text="Pedestrian crossing type" values="uncontrolled,traffic_signals,island,unmarked,no,unknown" />
     1099            <combo key="crossing_ref" text="Crossing type name (UK)" values="zebra,pelican,toucan,puffin,pegasus,tiger" />
     1100            <check key="supervised" text="Crossing attendant" default="off" />
    10941101            <check key="bicycle" text="Cross by bicycle" default="off" />
    10951102            <check key="horse" text="Cross on horseback" default="off" />
    1096             <check key="supervised" text="Crossing attendant" default="off" />
    1097             <combo key="crossing_ref" text="Type name (UK)" values="zebra,pelican,toucan,puffin,pegasus,tiger" />
    10981103        </item>
    10991104        <item name="Traffic Calming" icon="presets/chicane.png" type="node,way">
     
    11071112                  ru.href="http://wiki.openstreetmap.org/wiki/RU:Key:traffic_calming"/>
    11081113            <label text="Edit Traffic Calming" />
     1114            <space />
    11091115            <combo key="traffic_calming" text="Type" values="yes,bump,chicane,choker,cushion,hump,island,rumble_strip,table" match="key" />
    11101116        </item>
  • trunk/data/tagging-preset.xsd

    r6114 r6190  
    7171        <complexType name="optional">
    7272                <group ref="tns:optional_elements" maxOccurs="unbounded" />
     73        <attribute name="text" type="string" />
     74        <attribute name="text_context" type="string" />
    7375        </complexType>
    7476
Note: See TracChangeset for help on using the changeset viewer.