From d85e46af95a753a29e320eba66ac3957486839c8 Mon Sep 17 00:00:00 2001 From: Flo Edelmann Date: Fri, 23 Oct 2020 19:36:56 +0200 Subject: [PATCH 1/3] Don't start in the middle of the ocean --- assets/themes/benches/benches.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/themes/benches/benches.json b/assets/themes/benches/benches.json index 69356bb7a2..ca9e27b286 100644 --- a/assets/themes/benches/benches.json +++ b/assets/themes/benches/benches.json @@ -21,7 +21,7 @@ "version": "2020-10-23", "startLat": 0, "startLon": 0, - "startZoom": 12, + "startZoom": 1, "widenFactor": 0.05, "socialImage": "", "layers": [ From c39dbe1c00a9096af22de18be24044f20addd985 Mon Sep 17 00:00:00 2001 From: Flo Edelmann Date: Fri, 23 Oct 2020 19:38:46 +0200 Subject: [PATCH 2/3] Add mappings for material --- assets/themes/benches/benches.json | 56 ++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/assets/themes/benches/benches.json b/assets/themes/benches/benches.json index ca9e27b286..e5172588c6 100644 --- a/assets/themes/benches/benches.json +++ b/assets/themes/benches/benches.json @@ -108,6 +108,62 @@ "key": "material", "addExtraTags": [] }, + "mappings": [ + { + "if": { + "and": ["material=wood"] + }, + "then": { + "en": "Material: wood", + "de": "Material: Holz" + } + }, + { + "if": { + "and": ["material=metal"] + }, + "then": { + "en": "Material: metal", + "de": "Material: Metall" + } + }, + { + "if": { + "and": ["material=stone"] + }, + "then": { + "en": "Material: stone", + "de": "Material: Stein" + } + }, + { + "if": { + "and": ["material=concrete"] + }, + "then": { + "en": "Material: concrete", + "de": "Material: Beton" + } + }, + { + "if": { + "and": ["material=plastic"] + }, + "then": { + "en": "Material: plastic", + "de": "Material: Kunststoff" + } + }, + { + "if": { + "and": ["material=steel"] + }, + "then": { + "en": "Material: steel", + "de": "Material: Stahl" + } + } + ], "question": { "en": "What is the bench (seating) made from?", "de": "Aus welchem Material besteht die Sitzbank (Sitzfläche)?" From b43a7edbcd117c6b9ad58e4473c988a4ccea1020 Mon Sep 17 00:00:00 2001 From: Flo Edelmann Date: Fri, 23 Oct 2020 19:39:14 +0200 Subject: [PATCH 3/3] Add mappings for colour (and use Brithish English) --- assets/themes/benches/benches.json | 80 ++++++++++++++++++++++++++++-- 1 file changed, 77 insertions(+), 3 deletions(-) diff --git a/assets/themes/benches/benches.json b/assets/themes/benches/benches.json index e5172588c6..0c913c73f2 100644 --- a/assets/themes/benches/benches.json +++ b/assets/themes/benches/benches.json @@ -171,16 +171,90 @@ }, { "render": { - "en": "Color: {colour}", + "en": "Colour: {colour}", "de": "Farbe: {colour}" }, "question": { - "en": "Which color does this bench have?", + "en": "Which colour does this bench have?", "de": "Welche Farbe hat diese Sitzbank?" }, "freeform": { "key": "colour" - } + }, + "mappings": [ + { + "if": { + "and": ["colour=brown"] + }, + "then": { + "en": "Colour: brown", + "de": "Farbe: braun" + } + }, + { + "if": { + "and": ["colour=green"] + }, + "then": { + "en": "Colour: green", + "de": "Farbe: grün" + } + }, + { + "if": { + "and": ["colour=gray"] + }, + "then": { + "en": "Colour: gray", + "de": "Farbe: grau" + } + }, + { + "if": { + "and": ["colour=white"] + }, + "then": { + "en": "Colour: white", + "de": "Farbe: weiß" + } + }, + { + "if": { + "and": ["colour=red"] + }, + "then": { + "en": "Colour: red", + "de": "Farbe: rot" + } + }, + { + "if": { + "and": ["colour=black"] + }, + "then": { + "en": "Colour: black", + "de": "Farbe: schwarz" + } + }, + { + "if": { + "and": ["colour=blue"] + }, + "then": { + "en": "Colour: blue", + "de": "Farbe: blau" + } + }, + { + "if": { + "and": ["colour=yellow"] + }, + "then": { + "en": "Colour: yellow", + "de": "Farbe: gelb" + } + } + ] } ], "hideUnderlayingFeaturesMinPercentage": 0,