.. nor is the simple map.addOverlay function, WHEN I define markers in
a window.onload function. I've been hacking this for days, and I
simple cannot come up with a solution:

http://stage-v2.wtopnews.com/?nid=774

If you take a look at the source, you will see that markers are
defined, starting at line #256 (I usually strip \n and extraneous
spaces, but left them for an easier read). I use the addMarkers method
in:  http://stage-v2.wtopnews.com/javascripts/traffic/map.js @ line
#228. I know the code is confusing here, as I originally was using an
AJAX callback, but had to ditch as it was taking in excess of 5+
seconds to add overlays to map. The funny thing is, if I define new
instances of GMarker within the this.main method (line #139 of map.js
and as you can see at line #196), as opposed to doing it within the
onload method, then everything works hunky dory, but execution time
goes way up.

Ok, so I almost never post to newsgroups/forums, but i've reach the
saturation point. Any help would be greatly greatly appreciated.

Christian

--~--~---------~--~----~------------~-------~--~----~
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