<script>
let element = document.evaluate(
"/html/body/div[2]/div[2]/div[2]/div/div/div[2]/div/div/div",
document,
null,
XPathResult.FIRST_ORDERED_NODE_TYPE,
null
).singleNodeValue;
if (element) {
element.style.height = "100vh";
} else {
console.error("Element not found!");
}
</script>
when i inspected the rendered map there was one with id map-container and inside there were two divs the inner one had height 0 causing the problem so i selected the x-path of the inner div and used javascript to modify the height to 100vh