I'm working on a project where specific locations are added onto a Google Map. All working nicely: http://www.secret-vault.com/nostradamus/locations.html
I have added a toggle (jQuery) button to change to full screen (which can be escaped by Esc button).
$("#map_toggler").click(function() {
$("#map").toggleClass("fullscreen")
});
And used supporting CSS to change the map to full screen:
#map.fullscreen {
position: fixed !important;
top:0;
left:0;
z-index:1;
width:100%;
height: 100%;
margin:0;
padding:0;
}
I reset padding etc. to see if this was the root of the issue.
Problem is... Sometimes it will go full screen, other times it part fills height or returns to original height. This occurs particularly when zooming in/out.
There is a similar Q. here: How do I create a show full screen button to toggle my google maps page to be full screen? but this solution doesn't seem to be doing the trick.