Themes(shops): add labels to icecream, refactor label for shps

This commit is contained in:
Pieter Vander Vennet 2024-10-08 13:48:57 +02:00
parent cd6a3512d2
commit 1ade2ed45b
2 changed files with 8 additions and 2 deletions

View file

@ -38,6 +38,11 @@
"point", "point",
"centroid" "centroid"
], ],
"label": {
"render": "{name}",
"condition": "name~*"
},
"labelCssClasses": "bg-white rounded px-2",
"marker": [ "marker": [
{ {
"icon": "circle", "icon": "circle",

View file

@ -172,11 +172,12 @@
"then": "circle:white;./assets/layers/id_presets/fas-key.svg" "then": "circle:white;./assets/layers/id_presets/fas-key.svg"
} }
], ],
"labelCssClasses": "bg-white rounded px-2",,
"label": { "label": {
"mappings": [ "mappings": [
{ {
"if": "name~*", "if": "name~*",
"then": "<div style='background: white; padding: 0.25em; border-radius:0.5em'>{name}</div>" "then": "{name}"
} }
] ]
}, },
@ -366,7 +367,7 @@
] ]
} }
}, },
"opening_hours_by_appointment", "opening_hours",
"website", "website",
"email", "email",
"phone", "phone",