Your body <onload="Markers('green'); ... etc> functions fire too
early, (before the main script has completed loading and reading the
XML file.)
The GXmlHttp object is asynchronous, so you have to wait for it to
complete before you call Markers('green'), etc.
Move the call to Markers('green') inside the callback function of the
GXmlHttp object.

--
Marcelo - http://maps.forum.nu
--




On Nov 25, 5:10 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> I am having a problem where 90% of the time upon loading of the page
> that I have the google maps API running on, the map shows up but the
> markers do not appear on it.  In order for them to appear, I have to
> refresh the page and they appear and operate fine.  This is regardless
> of whether I use IE 7.0.600, or Firefox 3.0.4 running under Vista
> Home, or under Safari under Mac OS-X.
>
> The URL to the page is:www.hpcdevelop.com/mapping/index.html
> The file containing most of the Javascript 
> iswww.hpcdevelop.com/mapping/createmarker.js.
> The map pulls its markers from a XML 
> file,www.hpcdevelop.com/mapping/hpcsitelisting.xml.
>
> Anyone have any suggestions (besides putting a note on the page to
> "Hit Refresh if the Markers Don't Appear" !!)
>
> Thanks in advance,
> Matt
--~--~---------~--~----~------------~-------~--~----~
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