On Jun 3, 12:05 pm, fenacol <[email protected]> wrote:
>
> Toucht that de "map" was defined at line 31

It is, but it is defined as local to your "load" function. That means
that it can't be referenced outside that function. Once the "load"
function has run to completion, the variable no longer exists. (It
doesn't destroy your map as well, it just means you can't interact
with it)

Put
  var map;
in global scope, outside any function, and change line 31 to read
  map = new GMap2(...);
so that it uses the global variable instead of creating a local
variable.

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
-~----------~----~----~----~------~----~------~--~---

Reply via email to