On Mar 24, 10:55 am, iyanghao <[email protected]> wrote: > how to make " map" global? > I have defined "map"before function initial()
Yes, but you use var map = .... inside the function. Using var inside a function declares a local variable. Just use map = .... inside the function to use the variable you declared as a global. Andrew --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
