mapcomplete/assets/layers/drinking_water/drinking_water.json

150 lines
4.3 KiB
JSON
Raw Normal View History

{
"id": "drinking_water",
"name": {
"en": "Drinking water",
"nl": "Drinkbaar water",
"fr": "Eau potable",
"gl": "Auga potábel",
2021-05-28 12:42:59 +02:00
"de": "Trinkwasser",
"it": "Acqua potabile"
},
"title": {
"render": {
"en": "Drinking water",
"nl": "Drinkbaar water",
"fr": "Eau potable",
"gl": "Auga potábel",
2021-05-28 12:42:59 +02:00
"de": "Trinkwasser",
"it": "Acqua potabile"
}
},
"icon": {
"render": "pin:#6BC4F7;./assets/layers/drinking_water/drips.svg"
},
"iconOverlays": [
{
"if": {
"or": [
"operational_status=broken",
"operational_status=closed"
]
},
"then": "close:#c33",
"badge": true
}
],
"iconSize": "40,40,bottom",
"source": {
"osmTags": {
"and": [
"amenity=drinking_water",
"access!=permissive",
"access!=private"
]
}
},
"calculatedTags": [
"_closest_other_drinking_water_id=feat.closest('drinking_water').id",
"_closest_other_drinking_water_distance=Math.floor(feat.distanceTo(feat.closest('drinking_water')) * 1000)"
],
"minzoom": 13,
"wayHandling": 1,
"presets": [
{
"title": {
"en": "Drinking water",
"nl": "Drinkbaar water",
"fr": "Eau potable",
"gl": "Auga potábel",
2021-05-28 12:42:59 +02:00
"de": "Trinkwasser",
"it": "Acqua potabile"
},
"tags": [
"amenity=drinking_water"
]
}
],
"color": "#6bc4f7",
"tagRenderings": [
"images",
{
"#": "Still in use?",
"question": {
"en": "Is this drinking water spot still operational?",
2021-05-28 12:42:59 +02:00
"nl": "Is deze drinkwaterkraan nog steeds werkende?",
"it": "Questo punto di acqua potabile è sempre funzionante?"
},
"render": {
"en": "The operational status is <i>{operational_status</i>",
2021-05-28 12:42:59 +02:00
"nl": "Deze waterkraan-status is <i>{operational_status}</i>",
"it": "Lo stato operativo è <i>{operational_status}</i>"
},
"freeform": {
"key": "operational_status"
},
"mappings": [
{
"if": "operational_status=",
"then": {
"en": "This drinking water works",
2021-05-28 12:42:59 +02:00
"nl": "Deze drinkwaterfontein werkt",
"it": "La fontanella funziona"
}
},
{
"if": "operational_status=broken",
"then": {
"en": "This drinking water is broken",
2021-05-28 12:42:59 +02:00
"nl": "Deze drinkwaterfontein is kapot",
"it": "La fontanella è guasta"
}
},
{
"if": "operational_status=closed",
"then": {
"en": "This drinking water is closed",
2021-05-28 12:42:59 +02:00
"nl": "Deze drinkwaterfontein is afgesloten",
"it": "La fontanella è chiusa"
}
}
]
},
{
"#": "Bottle refill",
"question": {
"en": "How easy is it to fill water bottles?",
"nl": "Hoe gemakkelijk is het om drinkbussen bij te vullen?",
2021-05-28 12:42:59 +02:00
"de": "Wie einfach ist es, Wasserflaschen zu füllen?",
"it": "Quanto è facile riempire dacqua le bottiglie?"
},
"mappings": [
{
"if": "bottle=yes",
"then": {
"en": "It is easy to refill water bottles",
"nl": "Een drinkbus bijvullen gaat makkelijk",
2021-05-28 12:42:59 +02:00
"de": "Es ist einfach, Wasserflaschen nachzufüllen",
"it": "È facile riempire dacqua le bottiglie"
}
},
{
"if": "bottle=no",
"then": {
"en": "Water bottles may not fit",
"nl": "Een drinkbus past moeilijk",
2021-05-28 12:42:59 +02:00
"de": "Wasserflaschen passen möglicherweise nicht",
"it": "Le bottiglie dacqua potrebbero non entrare"
}
}
]
},
{
2021-05-19 22:38:41 +02:00
"render": {
2021-03-29 18:07:22 +02:00
"en": "<a href='#{_closest_other_drinking_water_id}'>There is another drinking water fountain at {_closest_other_drinking_water_distance} meter</a>",
2021-05-28 12:42:59 +02:00
"nl": "<a href='#{_closest_other_drinking_water_id}'>Er bevindt zich een ander drinkwaterpunt op {_closest_other_drinking_water_distance} meter</a>",
"it": "<a href='#{_closest_other_drinking_water_id}'>Cè unaltra fontanella a {_closest_other_drinking_water_distance} metri</a>"
},
"condition": "_closest_other_drinking_water_id~*"
}
]
2021-05-19 22:38:41 +02:00
}