On Dec 1, 1:07 pm, mike osterhout <[email protected]> wrote:
> I have a tricky problem. I have code like this
>
> $.get('/test.xml', function(xml){
>
> //use xml to create icons and markers

>

Put your call to add the markers you created to the marker manager
here.

> });
>
> //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?

Yes.  See above.

  -- Larry

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

Reply via email to