Not quite. It needs to be done from within the *callback function* that you pass to GEvent.addListener(). Call your createMarker/addOverlay code from inside that function.
On Fri, Apr 15, 2011 at 9:40 AM, Will <[email protected]> wrote: > Thank you. So what you are saying is that it should be done from > within the function geteta? > > On Apr 12, 5:27 pm, Rossko <[email protected]> wrote: > > > I am at a loss. Please help > > > > If you want to do something with the data returned from an > > asynchronous function, you need to do it within the callback. > > In your case, instead of putting the value in an HTML element, use it > > to create (or update) a marker. > > > > You can't return anything from an asynchronous function, there is > > nowhere to return it to. > > -- > You received this message because you are subscribed to the Google Groups > "Google Maps API V2" 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. > > -- You received this message because you are subscribed to the Google Groups "Google Maps API V2" 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.
