fix: eliminate map tile-seam lines, fix scroll, remove Expert Analysis
All checks were successful
Deploy Internet for Kids / Build & Push (push) Successful in 14s
Deploy Internet for Kids / Deploy (push) Successful in 7s
Deploy Internet for Kids / Health Check (push) Successful in 2s
Deploy Internet for Kids / Smoke Tests (push) Successful in 3s
Deploy Internet for Kids / IndexNow Ping (push) Successful in 8s
Deploy Internet for Kids / Promote to Latest (push) Successful in 1s
Deploy Internet for Kids / Rollback (push) Has been skipped
Deploy Internet for Kids / Audit (push) Successful in 2s

- fill-antialias: false + buffer: 512 on GeoJSON source to kill tile
  boundary artifacts
- cooperativeGestures replaces scrollZoom: false (page scrolls normally,
  Ctrl+scroll to zoom map)
- Remove "Expert Analysis" bullet from homepage in all 3 languages

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Christian Gick
2026-04-04 08:04:13 +03:00
parent 955e4bef6f
commit 63495fd901
4 changed files with 9 additions and 15 deletions

View File

@@ -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
}
});