Added name label and opening hours icon/filter

This commit is contained in:
Robin van der Linde 2022-07-19 21:13:35 +02:00
parent 38497c458b
commit 3ba5fb4b88
No known key found for this signature in database
GPG key ID: 53956B3252478F0D

View file

@ -26,6 +26,22 @@
"minzoom": 13,
"tagRenderings": [
"images",
{
"id": "name",
"freeform": {
"key": "name",
"type": "string",
"placeholder": {
"en": "Name of the pharmacy"
}
},
"question": {
"en": "What is the name of the pharmacy?"
},
"render": {
"en": "This pharmacy is called {name}"
}
},
"opening_hours",
"phone",
"email",
@ -66,8 +82,22 @@
"location": [
"point",
"centroid"
],
"iconBadges": [
{
"if": "opening_hours~*",
"then": "isOpen"
}
],
"label": {
"mappings": [
{
"if": "name~*",
"then": "<div style='background: white; padding: 0.25em; border-radius:0.5em'>{name}</div>"
}
]
}
}
],
"filter": [
{