From dd173aea8ee5cfff70bb6ae9bad0f16db3661a2c Mon Sep 17 00:00:00 2001 From: rami-dv Date: Mon, 20 May 2024 14:52:20 -0300 Subject: [PATCH] better fade in --- src/components/ConferenceMap.tsx | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/components/ConferenceMap.tsx b/src/components/ConferenceMap.tsx index 40aa8bb..d9b7941 100644 --- a/src/components/ConferenceMap.tsx +++ b/src/components/ConferenceMap.tsx @@ -426,7 +426,7 @@ const getMapStyle = ({ 0, 11.5, 0.6, - 11.5, + 12.5, 0, ], }, @@ -736,8 +736,20 @@ const getMapStyle = ({ minzoom: 11, maxzoom: 13.5, layout: { + "text-offset": [0, 0.4], "text-font": ["literal", ["Noto Sans SemiCondensed Regular"]], - "text-field": "Belém", + "text-field": [ + "format", + "Belém", + { + "font-scale": 1, + "text-font": ["literal", ["Noto Sans SemiCondensed Regular"]], + } as unknown as ExpressionSpecification, + "\n", + { "font-scale": 0.1 }, + "FOSS4G 2024", + { "font-scale": 0.4 }, + ], "text-size": 40, "text-ignore-placement": true, "text-allow-overlap": true,