Thanks. That seemed to solve the issue. I'm not sure why all the Google examples call the map inside of a function in that case, but I'll try to work around it.
On Oct 26, 7:49 pm, Rossko <[EMAIL PROTECTED]> wrote: > > I'm having a problem getting an xml file full of markers into my > > Google Maps applet. I don't think I'm doing anything very different > > from anything I've seen on the web, but I keep getting a "Value > > undefined (result of expression map.addOverlay) is not object" error > > Scope. > Your javascript map object is locally defined within a function. After > that function is complete, the 'map' object ceases to be available to > the rest of your code, so you can't perform map.addOverlay() > > see- > http://econym.org.uk/gmap/scope.htm > > cheers, Ross K --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
