On Oct 12, 2:13 am, bejitto101 <[EMAIL PROTECTED]> wrote:
> Could the issue be then, the javascript is running before the css
> runs? To load the js I am using document.observe("dom:loaded", load);
> Would that do it?

I think this is the cause of the problem. document.observe is
explained at http://www.prototypejs.org/api/document/observe and will
call load() when the DOM is complete -- that's principally so that the
function runs once all the elements are in place, but may not yet have
any content because it's still being loaded.

In your case, a <link> element is created so that the CSS can be
loaded; but document.observe("dom:loaded") doesn't wait for that to
finish, it's quite happy that the element is present in the DOM. There
may be issues with loading external script files and the icon images
too.

What you could do is use the <body onload...> event, which is
supported by every browser and will guarantee that all the content
which is required has been downloaded. Or you might find that using
the {size} option when you create your GMap2 object works.

Andrew
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to