Google Maps - Full screen on change event?
<p>I've been googling around and I can't find a solution for this problem anywhere. Is there anyway to detect when the map goes full screen or exits full screen? (pretty much like the DOM event onfullscreenchange)</p>

<p>I have a map with the option "fullscreenControl" set to true and all I want to do is center the map on the markers when the map goes fullscreen, as well as displaying an infowindow ONLY when the map is in fullscreen. How can I check for fullscreen changes?</p>

<p>I've tried using DOM events on the whole map but that doesn't seem to work, something like:</p>

<pre><code>  google.maps.event.addDomListener(document.getElementById("map-canvas"), "fullscreen", function () {
            console.log("FULLSCREEN CHANGED");
        });
</code></pre>

<p>I've also thought that I can make a Custom Control, in place of the X button that is the fullscreenControl, to toggle when the map goes fullscreen and then I can listen for a click event on that custom control, but is there no better way? Is there really no onfullscreenchange event or anything like that?</p>

<p>Thanks for the help!</p>