Changeset 15190 in josm


Ignore:
Timestamp:
2019-06-22T18:46:34+02:00 (2 months ago)
Author:
Klumbumbus
Message:
  • fix #17815 - add direction=* to traffic_sign presets
  • warn about traffic_sign=maxspeed without maxspeed=*
Location:
trunk/data
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/data/defaultpresets.xml

    r15189 r15190  
    11101110            <link wiki="Tag:highway=stop" />
    11111111            <key key="highway" value="stop" />
     1112            <optional>
     1113                <combo key="direction" text="Direction" values="N,E,S,W,0,90,180,270,forward,backward" values_sort="false" />
     1114            </optional>
    11121115        </item> <!-- Stop -->
    11131116        <item name="Give Way" icon="presets/vehicle/restriction/give_way.svg" type="node" preset_name_label="true">
    11141117            <link wiki="Tag:highway=give_way" />
    11151118            <key key="highway" value="give_way" />
     1119            <optional>
     1120                <combo key="direction" text="Direction" values="N,E,S,W,0,90,180,270,forward,backward" values_sort="false" />
     1121            </optional>
    11161122        </item> <!-- Give Way -->
    11171123        <item name="Mini-Roundabout" icon="presets/vehicle/restriction/mini_roundabout_left.svg" type="node" preset_name_label="true">
     
    12051211            <key key="traffic_sign" value="city_limit" />
    12061212            <text key="name" text="Name" />
    1207             <text key="alt_name" text="Second Name" />
     1213            <optional>
     1214                <text key="alt_name" text="Second Name" />
     1215                <combo key="direction" text="Direction" values="N,E,S,W,0,90,180,270,forward,backward" values_sort="false" />
     1216            </optional>
    12081217        </item> <!-- City Limit -->
    12091218        <item name="Speed Limit Sign" icon="presets/vehicle/restriction/maxspeed.svg" type="node" preset_name_label="true">
     
    12121221            <key key="traffic_sign" value="maxspeed" />
    12131222            <text key="maxspeed" text="Max. speed (km/h)" />
     1223            <optional>
     1224                <combo key="direction" text="Direction" values="N,E,S,W,0,90,180,270,forward,backward" values_sort="false" />
     1225            </optional>
    12141226        </item> <!-- Speed Limit -->
    12151227        <item name="Speed Camera" icon="presets/vehicle/restriction/speed_camera.svg" type="node" preset_name_label="true">
  • trunk/data/validator/combinations.mapcss

    r15169 r15190  
    118118
    119119/* {0.tag} without {1.key} (warning level) */
     120node[traffic_sign=maxspeed][!maxspeed],
    120121node[actuator=manual][!handle],
    121122node[emergency=fire_hydrant][!fire_hydrant:type],
Note: See TracChangeset for help on using the changeset viewer.