fix height issues on mobile devices

This commit is contained in:
Antonia 2024-09-10 12:01:39 +02:00
parent 5198df7c83
commit 92cf623f93

View file

@ -45,3 +45,12 @@ fetch("layers.json")
legend.addTo(map); legend.addTo(map);
strecken.addTo(map); strecken.addTo(map);
}) })
function resize() {
document.getElementById("map").style.height = window.innerHeight + 'px';
}
resize();
window.addEventListener('resize', () => {
resize();
});