I have a tricky problem. I have code like this
$.get('/test.xml', function(xml){
//use xml to create icons and markers
});
//I am then forced to use a setTimeout to ensure that this call is
finished
//campusMarkers are created above...
setTimeout("addMarkers(markers)", 800);
//this will fail
addMarkers(markers);
IS THERE ANYWAY TO DO THIS WITHOUT A TIMEOUT? Maybe there is an event I
can attach onto so that I know my markers are generated before I try to
add them to the map
--
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.