> 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
They don't, look at the more complex examples for examples of 'var map' inline (whilst map = GMap(... can be in a function). You don't HAVE to define javascript objects globally, so long as you understand and manage scope issues. Which is what the simpler Google examples do. When used as they are, they work. When modified into something else you need to fully appreciate what you're doing to them ... 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 -~----------~----~----~----~------~----~------~--~---
