mapcomplete/assets/layers/fitness_centre/fitness_centre.json
2022-10-13 21:31:34 +02:00

89 lines
1.7 KiB
JSON

{
"id": "fitness_centre",
"name": {
"en": "Fitness Centres"
},
"description": {
"en": "Layer showing fitness centres"
},
"source": {
"osmTags": "leisure=fitness_centre"
},
"minzoom": 12,
"title": {
"render": {
"en": "Fitness Centre"
},
"mappings": [
{
"if": "name~*",
"then": "{name}"
}
]
},
"tagRenderings": [
{
"id": "name",
"question": {
"en": "What is the name of this fitness centre?"
},
"freeform": {
"key": "name",
"placeholder": {
"en": "Name of fitness centre"
},
"type": "string"
},
"mappings": [
{
"if": "noname=yes",
"then": {
"en": "This fitness centre has no name"
}
}
],
"render": {
"en": "This fitness centre is called {name}"
}
},
"images",
"phone",
"email",
"website",
"opening_hours",
"wheelchair-access",
"level",
"reviews"
],
"presets": [
{
"tags": [
"leisure=fitness_centre"
],
"title": {
"en": "a fitness centre"
},
"icon": "./assets/layers/fitness_centre/gym.svg"
}
],
"mapRendering": [
{
"location": [
"point",
"centroid"
],
"icon": "circle:white;./assets/layers/fitness_centre/gym.svg",
"iconSize": "40,40,center",
"label": "<div style='background: white; padding: 0.25em; border-radius:0.5em'>{name}</div>",
"iconBadges": [
{
"if": "opening_hours~*",
"then": "isOpen"
}
]
}
],
"filter": [
"open_now"
]
}