diff --git a/resources/data/defaultpresets.xml b/resources/data/defaultpresets.xml
index 0b2e10ea17..cbd2a4e4ae 100644
|
a
|
b
|
|
| 5387 | 5387 | <combo key="opening_hours" text="Operation times" delimiter="|" values="24/7|Mo-Su 08:00-22:00" values_no_i18n="true" /> |
| 5388 | 5388 | </item> <!-- Sanitary Dump Station --> |
| 5389 | 5389 | <separator/> |
| 5390 | | <item name="Bench" icon="presets/leisure/bench.svg" type="node,way" preset_name_label="true"> |
| | 5390 | <item name="Bench" icon="presets/leisure/bench.svg" type="node,way,closedway,multipolygon" preset_name_label="true"> |
| 5391 | 5391 | <link wiki="Tag:amenity=bench" /> |
| 5392 | 5392 | <space /> |
| 5393 | 5393 | <key key="amenity" value="bench" /> |
| 5394 | 5394 | <check key="backrest" text="Backrest" /> |
| | 5395 | <check key="armrest" text="Armrest" /> |
| | 5396 | <combo key="seats" text="Amount of Seats" values="1,2,3,4,5,6,7,8,9,10" /> |
| | 5397 | <combo key="bench:type" text="Type" values="seated,stand_up,block,lounger,platform,swing,log,dangle_bench" values_searchable="true" /> |
| 5395 | 5398 | <combo key="material" text="Material" values="concrete,metal,plastic,stone,wood" /> |
| 5396 | 5399 | <reference ref="color" /> |
| 5397 | | <combo key="seats" text="Amount of Seats" values="1,2,3,4,5,6,7,8,9,10" /> |
| | 5400 | <check key="area" text="Area" /> |
| | 5401 | <optional> |
| | 5402 | <combo key="direction" text="Direction" values="N,E,S,W,0,90,180,270" values_sort="false" /> |
| | 5403 | <check key="covered" text="Covered" /> |
| | 5404 | <check key="lit" text="Lit" /> |
| | 5405 | </optional> |
| 5398 | 5406 | </item> <!-- Bench --> |
| 5399 | 5407 | <item name="Shelter" icon="presets/accommodation/shelter.svg" type="node,closedway" preset_name_label="true"> |
| 5400 | 5408 | <link wiki="Tag:amenity=shelter" /> |
diff --git a/resources/data/validator/geometry.mapcss b/resources/data/validator/geometry.mapcss
index a2fd445c5e..99d7b3ef8b 100644
|
a
|
b
|
way:closed[power=minor_line] {
|
| 154 | 154 | throwWarning: tr("{0} on a closed way. Should be used on an unclosed way.", "{1.tag}"); |
| 155 | 155 | } |
| 156 | 156 | |
| | 157 | /* amenity=bench on a closed way is ambiguous (linear loop vs seating platform area) */ |
| | 158 | way:closed[amenity=bench][area!=yes][area!=no] { |
| | 159 | throwWarning: tr("amenity=bench on a closed way is ambiguous. Specify area=yes for a seating platform area or area=no for a linear bench loop."); |
| | 160 | } |
| | 161 | |
| 157 | 162 | /* #20902 */ |
| 158 | 163 | relation[area?] { |
| 159 | 164 | throwWarning: tr("{0} on a relation", "{0.key}"); |
diff --git a/resources/data/validator/unnecessary.mapcss b/resources/data/validator/unnecessary.mapcss
index ac9f182191..0773914663 100644
|
a
|
b
|
way:closed[boundary][area?],
|
| 24 | 24 | way:closed[indoor ][area?][!highway][indoor!=no], |
| 25 | 25 | way:closed[office ][area?], |
| 26 | 26 | way:closed[place ][area?][!highway], |
| 27 | | way:closed[amenity ][area?][!highway], |
| | 27 | way:closed[amenity ][area?][!highway][amenity!=bench], |
| 28 | 28 | way:closed[building][area?], |
| 29 | 29 | way:closed[landuse ][area?][!highway], |
| 30 | 30 | way:closed[leisure ][area?][!highway][leisure!=track][leisure!=slipway], |