From 8a209f76f808e5c7790e59f279280d499345eb01 Mon Sep 17 00:00:00 2001 From: Christian Gick Date: Fri, 3 Apr 2026 16:10:36 +0300 Subject: [PATCH] fix: add country name labels from vector tiles (zoom >= 3) Open Sans Regular, uppercase, gray with white halo. Only visible when zoomed in. Co-Authored-By: Claude Opus 4.6 (1M context) --- layouts/shortcodes/world-map.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layouts/shortcodes/world-map.html b/layouts/shortcodes/world-map.html index 59c7050..5f99bb8 100644 --- a/layouts/shortcodes/world-map.html +++ b/layouts/shortcodes/world-map.html @@ -64,7 +64,8 @@ function ifkInitMap() { glyphs: 'https://maps.clicksports.de/fonts/{fontstack}/{range}.pbf', layers: [ { id: 'background', type: 'background', paint: { 'background-color': '#ffffff' } }, - { id: 'water', type: 'fill', source: 'openmaptiles', 'source-layer': 'water', paint: { 'fill-color': '#c8d3df' } } + { id: 'water', type: 'fill', source: 'openmaptiles', 'source-layer': 'water', paint: { 'fill-color': '#c8d3df' } }, + { id: 'country-labels', type: 'symbol', source: 'openmaptiles', 'source-layer': 'place', minzoom: 3, filter: ['==', 'class', 'country'], layout: { 'text-field': '{name:latin}', 'text-font': ['Open Sans Regular'], 'text-size': 12, 'text-transform': 'uppercase', 'text-letter-spacing': 0.05 }, paint: { 'text-color': '#6b7280', 'text-halo-color': '#ffffff', 'text-halo-width': 1.5 } } ] }, center: [20, 20],