Ticket #21927: cycleway_asl_direction_2.patch
| File cycleway_asl_direction_2.patch, 1.8 KB (added by , 4 months ago) |
|---|
-
resources/data/defaultpresets.xml
1523 1523 <item name="Advanced stop line" icon="presets/vehicle/asl.svg" type="node" preset_name_label="true"> 1524 1524 <link wiki="Tag:cycleway=asl" /> 1525 1525 <key key="cycleway" value="asl" /> 1526 <optional> 1527 <combo key="direction" text="Direction" values="forward,backward" values_sort="false" /> 1528 </optional> 1526 1529 </item> <!-- Advanced stop line --> 1527 1530 <item name="Mini-Roundabout" icon="presets/vehicle/restriction/mini_roundabout_left.svg" type="node" preset_name_label="true"> 1528 1531 <link wiki="Tag:highway=mini_roundabout" /> -
resources/data/validator/combinations.mapcss
1137 1137 assertNoMatch: "way highway=path segregated=yes cycleway:surface=needles footway:surface=paving_stones"; 1138 1138 assertNoMatch: "way highway=primary oneway=yes bicycle:lanes=no|designated|yes cycleway:lanes=|lane|no"; 1139 1139 } 1140 1141 /* #21927 */ 1142 way[!cycleway][!cycleway:right][!cycleway:left][!cycleway:both][!cycleway:lanes] > node[cycleway=asl] { 1143 throwWarning: tr("{0} not on cycleway", "{0.tag}"); 1144 group: tr("suspicious tag combination"); 1145 } 1146 1147 way[/^oneway(:bicycle)?$/!~/^yes$/] > node[cycleway=asl][!direction], 1148 way[!oneway][!oneway:bicycle] > node[cycleway=asl][!direction] { 1149 throwWarning: tr("{0} without {1}", "{0.tag}", "{1.key}"); 1150 group: tr("missing tag"); 1151 suggestAlternative: "{0.tag} + {1.key}=*"; 1152 }
