> 'map' is global since it's created in the parent function. That isn't global, it is local scope. http://econym.org.uk/gmap/scope.htm
Bear in mind that your createMarker() function is also created in local scope and may be destroyed again before the XML data returns. > And, sometimes, it works ! That is the nature of timing problems where the internet and browser caches are involved. > So how can I wait for map initialization functions to finish before I > display the markers ? You don't have to, you just get things in the right scope. Here's one that works - http://econym.org.uk/gmap/basic3.htm -- 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.
