The map works when the browser is resized as the width and height are correctly set and the resize event is raised.
The quickest solution to your problem would be to call the resize method (below) after the javascript which reveals it. Maybe after showDiv('mapDiv');
in showScoresAndCenterOn
?
google.maps.event.trigger(map, 'resize');
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…