Hi,
I am trying to implement Fullscreen widget on my map. I can click on the Fullscreen and get the map in full screen size. However after closing it goes back to actual map page where the map container height is 0.
I can manually set the height using fullscreenchange event listener.
document.addEventListener("fullscreenchange", function () {
}
However, I would like to know if this a safe and supported method to use. If not, is there a better solution?