diff --git a/assets/layers/bench/bench.json b/assets/layers/bench/bench.json index ad33ab7a3..d5777b713 100644 --- a/assets/layers/bench/bench.json +++ b/assets/layers/bench/bench.json @@ -64,6 +64,19 @@ "images", { "mappings": [ + { + "if": { + "and":["backrest=yes","two_sided=yes"] + }, + "then": { + "en": "This bench is two-sided and shares the backrest", + "nl": "Dit is een dubbele bank waarbij de rugleuning gedeeld wordt" + }, + "icon": { + "path": "./assets/layers/bench/two_sided.svg", + "class": "large" + } + }, { "if": "backrest=yes", "then": { @@ -86,7 +99,8 @@ "ca": "Té espatller", "da": "Har et ryglæn", "cs": "Má opěradlo" - } + }, + "addExtraTags": ["two_sided=no"] }, { "if": "backrest=no", @@ -438,7 +452,10 @@ "labels": [ "bench-questions" ], - "id": "bench-direction" + "id": "bench-direction", + "condition": { + "and": ["two_sided!=yes"] + } }, { "render": { @@ -1020,4 +1037,4 @@ }, "has_image" ] -} \ No newline at end of file +} diff --git a/assets/layers/bench/license_info.json b/assets/layers/bench/license_info.json index 95762c96f..54f9c34f9 100644 --- a/assets/layers/bench/license_info.json +++ b/assets/layers/bench/license_info.json @@ -8,5 +8,13 @@ "sources": [ "https://github.com/streetcomplete/StreetComplete/" ] + }, + { + "path": "two_sided.svg", + "license": "CC0", + "authors": [ + "Pieter Vander Vennet" + ], + "sources": ["https://commons.wikimedia.org/wiki/File:ISO_7010_P018.svg"] } -] \ No newline at end of file +] diff --git a/assets/layers/bench/two_sided.svg b/assets/layers/bench/two_sided.svg new file mode 100644 index 000000000..7cc916b19 --- /dev/null +++ b/assets/layers/bench/two_sided.svg @@ -0,0 +1,70 @@ + + + + + + + + + + + + +