The task is to exit from full-screen mode, programmatically.
I just can not understand what to use?
It is necessary that by pressing the transition button (not the card that is not the map), the card goes out of full-screen mode, but you need to know that it is really in full-screen mode.
Otherwise, it will be a subsequent entry into full screen mode.
Maybe somehow through fullscreenControl can be done?
Please help me figure it out.
|
1 answer
fullscreenControl is just a google.maps.Map property that adds controls to the map.
It is necessary to look towards the Fullscreen API, in which there is, for example, the fullscreenElement property and the exitFullscreen method
|