Changed around some icons, add filters

This commit is contained in:
Robin van der Linde 2022-10-13 21:31:34 +02:00
parent 7ed5489b18
commit b5c7076b36
No known key found for this signature in database
GPG key ID: 53956B3252478F0D
5 changed files with 48 additions and 26 deletions

View file

@ -74,7 +74,16 @@
],
"icon": "circle:white;./assets/layers/fitness_centre/gym.svg",
"iconSize": "40,40,center",
"label": "{name}"
"label": "<div style='background: white; padding: 0.25em; border-radius:0.5em'>{name}</div>",
"iconBadges": [
{
"if": "opening_hours~*",
"then": "isOpen"
}
]
}
],
"filter": [
"open_now"
]
}
}

View file

@ -323,25 +323,7 @@
"en": "The fitness station is maintained by {operator}."
}
},
{
"id": "opening_hours",
"question": {
"en": "When is this fitness station opened?"
},
"freeform": {
"key": "opening_hours",
"type": "opening_hours"
},
"render": "{opening_hours_table()}",
"mappings": [
{
"if": "opening_hours=24/7",
"then": {
"en": "24/7"
}
}
]
}
"opening_hours"
],
"presets": [
{
@ -362,7 +344,21 @@
"centroid"
],
"icon": "circle:white;./assets/layers/fitness_station/fitness.svg",
"iconSize": "40,40,center"
"iconSize": "40,40,center",
"iconBadges": [
{
"if": {
"and": [
"opening_hours!=24/7",
"opening_hours~*"
]
},
"then": "isOpen"
}
]
}
],
"filter": [
"open_now"
]
}
}

View file

@ -580,5 +580,8 @@
"width": "1",
"fill": "false"
}
],
"filter": [
"open_now"
]
}
}

View file

@ -42,7 +42,16 @@
"mapRendering": [
{
"icon": "circle:white;./assets/layers/sports_centre/sports_centre.svg",
"location": ["point", "centroid"]
"iconBadges": [
{
"if": "opening_hours~*",
"then": "isOpen"
}
],
"location": [
"point",
"centroid"
]
},
{
"color": "darkgreen",

View file

@ -46,7 +46,12 @@
}
}
],
"minzoom": 12
"minzoom": 12,
"mapRendering": [
{
"icon": "./assets/layers/id_presets/maki-shop.svg"
}
]
}
}
]