Changeset 17949 in josm


Ignore:
Timestamp:
2021-07-05T22:04:41+02:00 (3 years ago)
Author:
Klumbumbus
Message:

see #21069 - Split up enforcement=average_speed preset, small adjustmenst to the presets (patch by skyper partly included)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/resources/data/defaultpresets.xml

    r17948 r17949  
    87308730            <space />
    87318731            <key key="type" value="enforcement" />
    8732             <combo key="enforcement" text="Type" values="average_speed,check,maxheight,maxspeed,maxweight,mindistance,toll,traffic_signals" />
     8732            <combo key="enforcement" text="Type" values="check,maxheight,maxspeed,maxweight,mindistance,toll,traffic_signals" match="keyvalue!" />
    87338733            <text key="maxheight" text="Max. height (meters, only if enforcement=maxheight)" />
     8734            <text key="maxspeed" text="Max. speed (km/h, only if enforcement=maxspeed)" />
    87348735            <text key="maxweight" text="Max. weight (tonnes, only if enforcement=maxweight)" />
    8735             <text key="maxspeed" text="Max. speed (km/h, only if enforcement=maxspeed)" />
     8736            <text key="mindistance" text="Min. vehicle distance (meters, only if enforcement=mindistance)" />
    87368737            <roles>
    87378738                <role key="device" text="location of enforcement device" requisite="required" type="node,way,closedway" />
     
    87398740                <role key="to" text="where enforcement ends" requisite="optional" type="node" />
    87408741                <role key="force" text="traffic light or barrier that stops you" requisite="optional" type="node" />
    8741                 <role key="section" text="section (only if enforcement=average_speed)" requisite="optional" type="way" />
    87428742            </roles>
    87438743        </item> <!-- Enforcement -->
     8744        <item name="Enforcement (average speed)" icon="presets/vehicle/restriction/speed_camera.svg" type="relation" preset_name_label="true">
     8745            <link wiki="Relation:enforcement" />
     8746            <space />
     8747            <key key="type" value="enforcement" />
     8748            <key key="enforcement" value="average_speed" />
     8749            <text key="maxspeed" text="Max. speed (km/h)" />
     8750            <roles>
     8751                <role key="device" text="location of enforcement device" requisite="required" type="node,way,closedway" />
     8752                <role key="from" text="node on way where enforcement starts" requisite="required" type="node" />
     8753                <role key="to" text="where enforcement ends" requisite="optional" type="node" />
     8754                <role key="section" text="ways forming the section of messurement" requisite="required" type="way" />
     8755            </roles>
     8756        </item> <!-- Enforcement (average speed) -->
    87448757        <separator/>
    87458758        <group name="Routes" icon="presets/misc/route.svg">
Note: See TracChangeset for help on using the changeset viewer.