diff --git a/assets/layers/fire_hydrants/fire_hydrants.json b/assets/layers/fire_hydrants/fire_hydrants.json index e12c6d7..1cb8d51 100644 --- a/assets/layers/fire_hydrants/fire_hydrants.json +++ b/assets/layers/fire_hydrants/fire_hydrants.json @@ -144,6 +144,10 @@ "key": "fire_hydrant:diameter", "type": "pnat" }, + "condition": { "or": [ + "has_marker!=no", + "fire_hydrant:diameter~*" + ] }, "mappings": [ { "if": { "and": [ "fire_hydrant:diameter=75" ] }, "then": { "nl": " Nominale diameter van aanvoerleiding: 75 mm", @@ -194,12 +198,7 @@ "nl": " Nominale diameter van aanvoerleiding: {fire_hydrant:diameter} mm", "en": " Nominal diameter of supply: {fire_hydrant:diameter} mm" }, "hideInAnswer": true } - ], - "condition": {"or": [ - "removed:emergency!=fire_hydrant", - "has_marker=yes", - "fire_hydrant:diameter~*" - ]} + ] }, { @@ -301,11 +300,11 @@ "en": " A marker is missing!" }}, {"if": {"and": ["has_marker="]}, "then": { - "nl": " Er is een bordje voor de hydrant.", + "nl": " Er is een bordje.", "en": " A marker is present." }}, {"if": {"and": ["has_marker=yes"]}, "then": { - "nl": " Er is een bordje voor de hydrant.", + "nl": " Er is een bordje.", "en": " A marker is present." }, "hideInAnswer": true } ] @@ -319,17 +318,13 @@ "condition": {"or": ["disused:emergency=fire_hydrant", "abandoned:emergency=fire_hydrant"]}, "mappings": [ {"if": {"and": ["has_marker=no"]}, "then": { - "nl": " Een bordje ontbreekt.", - "en": " A marker is missing." - }}, - {"if": {"and": ["has_marker="]}, "then": { - "nl": " Er is een bordje voor de hydrant.", - "en": " A marker is present." + "nl": " Er is geen bordje.", + "en": " There's no marker." }}, {"if": {"and": ["has_marker=yes"]}, "then": { - "nl": " Er is een bordje voor de hydrant.", + "nl": " Er is een bordje.", "en": " A marker is present." - }, "hideInAnswer": true } + }} ] }, { @@ -360,7 +355,7 @@ "nl": "Omgeving: {fire_hydrant:position}", "en": "Position: {fire_hydrant:position}" }, - "freeform": {"key": "fire_hydrant:position:description"}, + "freeform": {"key": "fire_hydrant:position"}, "condition": {"and": ["removed:emergency!=fire_hydrant"]}, "mappings": [ {"if": {"and": ["fire_hydrant:position=lane"]}, "then": { @@ -390,14 +385,22 @@ ] }, + { + "render": { + "nl": "Extra info: {description}", + "en": "Extra info: {description}" + }, + "freeform": {"key": "description"} + }, + { "question": { "nl": "Heb je opmerkingen die niet pasten in de andere vragen?", "en": "Any other remarks that don't fit in the other questions?" }, "render": { - "nl": "Extra info: {description:0}", - "en": "Extra info: {description:0}" + "nl": "Extra info via MapComplete: {description:0}", + "en": "Extra info via MapComplete: {description:0}" }, "freeform": {"key": "description:0"} }