Added name label and opening hours icon/filter
This commit is contained in:
parent
38497c458b
commit
3ba5fb4b88
1 changed files with 53 additions and 23 deletions
|
@ -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": [
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue