diff --git a/frontend/map.js b/frontend/map.js index b0dbc91..0e77bfd 100644 --- a/frontend/map.js +++ b/frontend/map.js @@ -45,3 +45,12 @@ fetch("layers.json") legend.addTo(map); strecken.addTo(map); }) + +function resize() { + document.getElementById("map").style.height = window.innerHeight + 'px'; +} +resize(); +window.addEventListener('resize', () => { + resize(); +}); +