diff --git a/content/de/_index.md b/content/de/_index.md index 1aaacc5..0b03dd1 100644 --- a/content/de/_index.md +++ b/content/de/_index.md @@ -10,7 +10,6 @@ Der Schutz von Kindern im Internet ist eine der wichtigsten Herausforderungen un - **Kinderschutzgesetze** — Länderweise Analyse der Vorschriften zum Schutz junger Nutzer im Internet - **Online-Sicherheitstools** — Bewertungen und Anleitungen für Kindersicherungen, VPNs und Inhaltsfilter - **Digitale Erziehung** — Praktische Ratschläge für die Kindererziehung in einer vernetzten Welt -- **Expertenanalysen** — Ausführliche Berichte über neue Bedrohungen und Lösungen {{< child-safety-map >}} diff --git a/content/en/_index.md b/content/en/_index.md index 59db1b7..bb22a89 100644 --- a/content/en/_index.md +++ b/content/en/_index.md @@ -10,7 +10,6 @@ Protecting children online is one of the most important challenges of our time. - **Child Protection Laws** — Country-by-country analysis of regulations that protect young users online - **Online Safety Tools** — Reviews and guides for parental controls, VPNs, and content filters - **Digital Parenting** — Practical advice for raising children in a connected world -- **Expert Analysis** — In-depth reporting on emerging threats and solutions {{< child-safety-map >}} diff --git a/content/fr/_index.md b/content/fr/_index.md index 395b436..011c383 100644 --- a/content/fr/_index.md +++ b/content/fr/_index.md @@ -10,7 +10,6 @@ Protéger les enfants en ligne est l'un des défis les plus importants de notre - **Lois de protection de l'enfance** — Analyse pays par pays des réglementations qui protègent les jeunes utilisateurs en ligne - **Outils de sécurité en ligne** — Tests et guides pour le contrôle parental, les VPN et les filtres de contenu - **Parentalité numérique** — Conseils pratiques pour élever des enfants dans un monde connecté -- **Analyses d'experts** — Reportages approfondis sur les menaces émergentes et les solutions {{< child-safety-map >}} diff --git a/layouts/shortcodes/world-map.html b/layouts/shortcodes/world-map.html index 41d7e28..e2be2ab 100644 --- a/layouts/shortcodes/world-map.html +++ b/layouts/shortcodes/world-map.html @@ -80,22 +80,13 @@ function ifkInitMap() { zoom: 2, minZoom: 1, maxZoom: 6, - scrollZoom: false, + cooperativeGestures: true, attributionControl: false }); window._ifkMap.addControl(new maplibregl.NavigationControl({ showCompass: false }), 'top-right'); window._ifkMap.addControl(new maplibregl.FullscreenControl(), 'top-right'); - // Enable scroll zoom in fullscreen - document.addEventListener('fullscreenchange', function() { - if (document.fullscreenElement) { - window._ifkMap.scrollZoom.enable(); - } else { - window._ifkMap.scrollZoom.disable(); - } - }); - window._ifkMap.on('load', function() { fetch('{{ "data/countries-50m.json" | relURL }}') .then(function(r) { return r.json(); }) @@ -109,7 +100,12 @@ function ifkInitMap() { f.properties.isoNum = id; }); - window._ifkMap.addSource('countries-choropleth', { type: 'geojson', data: geo }); + window._ifkMap.addSource('countries-choropleth', { + type: 'geojson', + data: geo, + buffer: 512, + tolerance: 0 + }); window._ifkMap.addLayer({ id: 'choropleth-fill', @@ -117,7 +113,8 @@ function ifkInitMap() { source: 'countries-choropleth', paint: { 'fill-color': ['get', 'fillColor'], - 'fill-opacity': 1 + 'fill-opacity': 1, + 'fill-antialias': false } });