CSS display:none will result in a div with zero size as Rossko pointed out. http://www.w3schools.com/CSS/pr_class_display.asp
Can you instead try visibility:hidden;? http://www.w3schools.com/CSS/pr_class_visibility.asp The div should still be invisible but will still have the correct size... Martin. On Dec 17, 7:08 pm, Rossko <[email protected]> wrote: > > I want to show the map only after it's been loaded. > > You might need to think about what "loaded" you have in mind. If the > map has no size (because it is hidden) then there aren't any tiles to > be loaded. > When you show that map and trigger the resize method, it will then > fetch the tiles needed for that new size. > > Maybe you need to give the map div a specific size for the API to work > on, even though it is hidden. -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
