fix: white land, darker sea (#c8d3df), add fullscreen button
All checks were successful
Deploy Internet for Kids / Build & Push (push) Successful in 9s
Deploy Internet for Kids / Deploy (push) Successful in 5s
Deploy Internet for Kids / Health Check (push) Successful in 1s
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 2s
Deploy Internet for Kids / Rollback (push) Has been skipped
Deploy Internet for Kids / Audit (push) Successful in 1s

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Christian Gick
2026-04-03 16:04:44 +03:00
parent 0dfc11d0fc
commit ea0c78adef

View File

@@ -63,13 +63,14 @@ function ifkInitMap() {
}); });
window._ifkMap.addControl(new maplibregl.NavigationControl({ showCompass: false }), 'top-right'); window._ifkMap.addControl(new maplibregl.NavigationControl({ showCompass: false }), 'top-right');
window._ifkMap.addControl(new maplibregl.FullscreenControl(), 'top-right');
window._ifkMap.on('load', function() { window._ifkMap.on('load', function() {
// Nuke ALL base map layers, then selectively re-enable only what we need // Nuke ALL base map layers, then selectively re-enable only what we need
var style = window._ifkMap.getStyle(); var style = window._ifkMap.getStyle();
style.layers.forEach(function(l) { style.layers.forEach(function(l) {
if (l.id === 'background') { if (l.id === 'background') {
window._ifkMap.setPaintProperty(l.id, 'background-color', '#eaeaea'); window._ifkMap.setPaintProperty(l.id, 'background-color', '#ffffff');
} else { } else {
window._ifkMap.setLayoutProperty(l.id, 'visibility', 'none'); window._ifkMap.setLayoutProperty(l.id, 'visibility', 'none');
} }
@@ -78,9 +79,9 @@ function ifkInitMap() {
style.layers.forEach(function(l) { style.layers.forEach(function(l) {
if (l.type === 'fill' && l.id.indexOf('water') >= 0) { if (l.type === 'fill' && l.id.indexOf('water') >= 0) {
window._ifkMap.setLayoutProperty(l.id, 'visibility', 'visible'); window._ifkMap.setLayoutProperty(l.id, 'visibility', 'visible');
window._ifkMap.setPaintProperty(l.id, 'fill-color', '#dfe6ee'); window._ifkMap.setPaintProperty(l.id, 'fill-color', '#c8d3df');
if (l.paint && l.paint['fill-outline-color'] !== undefined) { if (l.paint && l.paint['fill-outline-color'] !== undefined) {
window._ifkMap.setPaintProperty(l.id, 'fill-outline-color', '#dfe6ee'); window._ifkMap.setPaintProperty(l.id, 'fill-outline-color', '#c8d3df');
} }
} }
}); });