fix: strip base map to white/gray, hide all noise, no attribution
All checks were successful
Deploy Internet for Kids / Build & Push (push) Successful in 10s
Deploy Internet for Kids / Deploy (push) Successful in 5s
Deploy Internet for Kids / Health Check (push) Successful in 2s
Deploy Internet for Kids / Smoke Tests (push) Successful in 2s
Deploy Internet for Kids / IndexNow Ping (push) Successful in 7s
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
All checks were successful
Deploy Internet for Kids / Build & Push (push) Successful in 10s
Deploy Internet for Kids / Deploy (push) Successful in 5s
Deploy Internet for Kids / Health Check (push) Successful in 2s
Deploy Internet for Kids / Smoke Tests (push) Successful in 2s
Deploy Internet for Kids / IndexNow Ping (push) Successful in 7s
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
White land, light blue-gray water, thin admin borders only. Everything else hidden. No MapLibre attribution badge. Default zoom 2, centered on [20,20] for better world view. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -54,32 +54,35 @@ function ifkInitMap() {
|
||||
window._ifkMap = new maplibregl.Map({
|
||||
container: 'ifk-world-map',
|
||||
style: 'https://maps.clicksports.de/styles/klokantech-basic/style.json',
|
||||
center: [10, 25],
|
||||
zoom: 1.5,
|
||||
center: [20, 20],
|
||||
zoom: 2,
|
||||
minZoom: 1,
|
||||
maxZoom: 6,
|
||||
scrollZoom: false,
|
||||
attributionControl: true
|
||||
attributionControl: false
|
||||
});
|
||||
|
||||
window._ifkMap.addControl(new maplibregl.NavigationControl({ showCompass: false }), 'top-right');
|
||||
|
||||
window._ifkMap.on('load', function() {
|
||||
// Desaturate base map: white land, light gray sea
|
||||
// Strip base map to minimal: white land, light gray water, thin borders only
|
||||
var style = window._ifkMap.getStyle();
|
||||
style.layers.forEach(function(l) {
|
||||
if (l.id === 'background') {
|
||||
window._ifkMap.setPaintProperty(l.id, 'background-color', '#e8e8e8');
|
||||
window._ifkMap.setPaintProperty(l.id, 'background-color', '#ffffff');
|
||||
return;
|
||||
}
|
||||
if (l.type === 'fill' && (l.id.indexOf('water') >= 0 || l.id.indexOf('ocean') >= 0)) {
|
||||
window._ifkMap.setPaintProperty(l.id, 'fill-color', '#f0f0f0');
|
||||
if (l.type === 'fill' && l.id.indexOf('water') >= 0) {
|
||||
window._ifkMap.setPaintProperty(l.id, 'fill-color', '#eef2f7');
|
||||
return;
|
||||
}
|
||||
if (l.type === 'fill' && (l.id.indexOf('landcover') >= 0 || l.id.indexOf('landuse') >= 0 || l.id.indexOf('park') >= 0)) {
|
||||
window._ifkMap.setPaintProperty(l.id, 'fill-opacity', 0);
|
||||
}
|
||||
if (l.type === 'line' && (l.id.indexOf('boundary') < 0)) {
|
||||
window._ifkMap.setLayoutProperty(l.id, 'visibility', 'none');
|
||||
if (l.type === 'line' && l.id.indexOf('admin') >= 0) {
|
||||
window._ifkMap.setPaintProperty(l.id, 'line-color', '#d1d5db');
|
||||
window._ifkMap.setPaintProperty(l.id, 'line-width', 0.5);
|
||||
return;
|
||||
}
|
||||
// Hide everything else
|
||||
window._ifkMap.setLayoutProperty(l.id, 'visibility', 'none');
|
||||
});
|
||||
|
||||
fetch('{{ "data/countries-50m.json" | relURL }}')
|
||||
|
||||
Reference in New Issue
Block a user