Select to view content in your preferred language

FullScreen not working

114
0
02-26-2025 08:42 AM
Vani
by
New Contributor

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?

0 Kudos
0 Replies