Formatting all the JSON files

This commit is contained in:
pietervdvn 2021-05-19 22:38:41 +02:00
parent e057f10409
commit 40a79ab6a6
15 changed files with 50 additions and 39 deletions

View file

@ -230,7 +230,7 @@
] ]
}, },
{ {
"question":{ "question": {
"en": "When was this bench last surveyed?" "en": "When was this bench last surveyed?"
}, },
"render": { "render": {

View file

@ -4,9 +4,10 @@
"en": "Bicycle library", "en": "Bicycle library",
"nl": "Fietsbibliotheek" "nl": "Fietsbibliotheek"
}, },
"minzoom": 8 , "minzoom": 8,
"source": { "source": {
"osmTags": "amenity=bicycle_library"}, "osmTags": "amenity=bicycle_library"
},
"title": { "title": {
"render": { "render": {
"en": "Bicycle library", "en": "Bicycle library",
@ -59,18 +60,23 @@
"en": "How much does lending a bicycle cost?", "en": "How much does lending a bicycle cost?",
"nl": "Hoeveel kost het huren van een fiets?" "nl": "Hoeveel kost het huren van een fiets?"
}, },
"render":{ "render": {
"en": "Lending a bicycle costs {charge}", "en": "Lending a bicycle costs {charge}",
"nl": "Een fiets huren kost {charge}" "nl": "Een fiets huren kost {charge}"
}, },
"freeform": { "freeform": {
"key": "charge", "key": "charge",
"addExtraTags": ["fee=yes"] "addExtraTags": [
"fee=yes"
]
}, },
"mappings": [ "mappings": [
{ {
"if": { "if": {
"and": ["fee=no","charge="] "and": [
"fee=no",
"charge="
]
}, },
"then": { "then": {
"en": "Lending a bicycle is free", "en": "Lending a bicycle is free",
@ -79,7 +85,10 @@
}, },
{ {
"if": { "if": {
"and": ["fee=yes","charge=€20warranty + €20/year"] "and": [
"fee=yes",
"charge=€20warranty + €20/year"
]
}, },
"then": { "then": {
"en": "Lending a bicycle costs €20/year and €20 warranty", "en": "Lending a bicycle costs €20/year and €20 warranty",

View file

@ -16,7 +16,7 @@
} }
}, },
"icon": { "icon": {
"render": "./assets/layers/bike_parking/parking.svg" "render": "./assets/layers/bike_parking/parking.svg"
}, },
"iconSize": "40,40,bottom", "iconSize": "40,40,bottom",
"color": "#00f", "color": "#00f",

View file

@ -17,7 +17,6 @@
"association=bicycle", "association=bicycle",
"ngo=cycling", "ngo=cycling",
"ngo=bicycle", "ngo=bicycle",
"club=bicycle", "club=bicycle",
"club=cycling" "club=cycling"
] ]

View file

@ -408,15 +408,14 @@
"type": "opening_hours" "type": "opening_hours"
}, },
"mappings": [ "mappings": [
{ {
"if": "opening_hours=24/7", "if": "opening_hours=24/7",
"then": "then": {
{ "en": "24/7 opened (including holidays)",
"en": "24/7 opened (including holidays)", "nl": "24/7 open (inclusief feestdagen)"
"nl": "24/7 open (inclusief feestdagen)" }
} }
} ]
]
}, },
{ {
"render": { "render": {

View file

@ -128,7 +128,7 @@
] ]
}, },
{ {
"render":{ "render": {
"en": "<a href='#{_closest_other_drinking_water_id}'>There is another drinking water fountain at {_closest_other_drinking_water_distance} meter</a>", "en": "<a href='#{_closest_other_drinking_water_id}'>There is another drinking water fountain at {_closest_other_drinking_water_distance} meter</a>",
"nl": "<a href='#{_closest_other_drinking_water_id}'>Er bevindt zich een ander drinkwaterpunt op {_closest_other_drinking_water_distance} meter</a>" "nl": "<a href='#{_closest_other_drinking_water_id}'>Er bevindt zich een ander drinkwaterpunt op {_closest_other_drinking_water_distance} meter</a>"
}, },

View file

@ -338,10 +338,14 @@
"en": "Surface area: {_surface:ha}Ha", "en": "Surface area: {_surface:ha}Ha",
"nl": "Totale oppervlakte: {_surface:ha}Ha" "nl": "Totale oppervlakte: {_surface:ha}Ha"
}, },
"mappings":[ { "mappings": [
{
"if": "_surface:ha=0", "if": "_surface:ha=0",
"then": {"*":""} "then": {
}] "*": ""
}
}
]
} }
], ],
"hideUnderlayingFeaturesMinPercentage": 10, "hideUnderlayingFeaturesMinPercentage": 10,
@ -373,4 +377,3 @@
} }
] ]
} }

View file

@ -191,6 +191,5 @@
"color": { "color": {
"render": "#eaba2a" "render": "#eaba2a"
}, },
"presets": [ "presets": []
]
} }

View file

@ -367,7 +367,7 @@
] ]
}, },
"then": "circle:white;./assets/layers/sport_pitch/lock.svg", "then": "circle:white;./assets/layers/sport_pitch/lock.svg",
"badge":true "badge": true
} }
], ],
"width": { "width": {
@ -378,7 +378,10 @@
"mappings": [ "mappings": [
{ {
"if": { "if": {
"or": ["_size_classification=medium","id~node/.*"] "or": [
"_size_classification=medium",
"id~node/.*"
]
}, },
"then": "40,40,center" "then": "40,40,center"
}, },
@ -386,7 +389,6 @@
"if": "_size_classification=small", "if": "_size_classification=small",
"then": "25,25,center" "then": "25,25,center"
}, },
{ {
"if": "_size_classification=large", "if": "_size_classification=large",
"then": "50,50,center" "then": "50,50,center"