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
Signed by untrusted user: Robin-van-der-Linde
GPG key ID: 53956B3252478F0D

View file

@ -26,6 +26,22 @@
"minzoom": 13, "minzoom": 13,
"tagRenderings": [ "tagRenderings": [
"images", "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", "opening_hours",
"phone", "phone",
"email", "email",
@ -66,8 +82,22 @@
"location": [ "location": [
"point", "point",
"centroid" "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": [ "filter": [
{ {