I'm building a userscript (script to install in browser to modify 3rd party pages) for GeoGuessr.com. It adds a button that allows to expand the small guess map to fullscreen.
While I had no problems with the layout, the issue is that the Google Map does not resize:
The page is built with Backbone and does not have an API to access any of the views, much less the internal Google Maps object.
I tried
$(window).trigger('resize');
to trigger a window resize event because I noticed when I do this manually the map resizes. Yet nothing happens (Chrome 29).
Is there any way to force the Google Map to resize in my userscript?