最佳答案
I have a page, and a Google Maps map is inside a hidden div at first. I then show the div after I click a link, but only the top left of the map shows up.
I tried having this code run after the click:
map0.onResize();
Or:
google.maps.event.trigger(map0, 'resize')
How can I do it?
Here is an image of what I see after showing the div with the hidden map in it: