I had the same problem that made me worry for several days, and today I found a solution, and it worked!
In my case, I used tabs to view different parts of my page. It was not jquery ui, I did it. On one tab, I placed the card code. When I clicked on the map tab, he showed me the map, but broke it. Finally, I understood the problem and solution.
To hide my elements, I used the display:none property to show that I used the display:block property. When the google map tried to get the container block size, it found 0 x 0 because it was hidden. Thus, the card proved to be broken.
Then I changed my css to bookmark the map only to position:absolute;left:-99999px; instead of display:none and used jquery to add a class and remove it if necessary using the properties above. Then the code started working! My map has been fixed.
maksbd19 Jun 12 '12 at 23:25 2012-06-12 23:25
source share