fix height issues on mobile devices
This commit is contained in:
parent
5198df7c83
commit
92cf623f93
1 changed files with 9 additions and 0 deletions
|
@ -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();
|
||||||
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue