I have used Google Maps on many sites in the past, but I ran into a problem that I had not encountered before. The map window is displayed, but it only displays map segments at the top left and something after that (even when I move) nothing loads right. It is as if the window that is moving around has an internal offset that pushes it away from the viewport. Does anyone know what might cause this?
EDIT
I just found that when the window is resized, the map is updated and the layout is fixed.
The map is contained in a tab that displays through javascript (and hides through display:none ). The tab container is loaded via ajax, and when it is loaded, the loadMap function is called. I tried to defer the loadMap function by including it in the setTimeout function, which delays the creation of the map by 1 second, but it still does the same thing (requiring a resize window to fix it).
source share