From 1ade2ed45b1fdd2e4fa6acccc889f939f68c4fa2 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Tue, 8 Oct 2024 13:48:57 +0200 Subject: [PATCH] Themes(shops): add labels to icecream, refactor label for shps --- assets/layers/ice_cream/ice_cream.json | 5 +++++ assets/layers/shops/shops.json | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/assets/layers/ice_cream/ice_cream.json b/assets/layers/ice_cream/ice_cream.json index d788d62bfa..791e759fdf 100644 --- a/assets/layers/ice_cream/ice_cream.json +++ b/assets/layers/ice_cream/ice_cream.json @@ -38,6 +38,11 @@ "point", "centroid" ], + "label": { + "render": "{name}", + "condition": "name~*" + }, + "labelCssClasses": "bg-white rounded px-2", "marker": [ { "icon": "circle", diff --git a/assets/layers/shops/shops.json b/assets/layers/shops/shops.json index 82ba198c85..aae30f25be 100644 --- a/assets/layers/shops/shops.json +++ b/assets/layers/shops/shops.json @@ -172,11 +172,12 @@ "then": "circle:white;./assets/layers/id_presets/fas-key.svg" } ], + "labelCssClasses": "bg-white rounded px-2",, "label": { "mappings": [ { "if": "name~*", - "then": "
{name}
" + "then": "{name}" } ] }, @@ -366,7 +367,7 @@ ] } }, - "opening_hours_by_appointment", + "opening_hours", "website", "email", "phone",