Try making your map variable global. At the moment it's local to your
load() function.
I.e. add the line
var map;
outside your load() function and change your
var map = new GMap2(document.getElementById("map"));
to
map = new GMap2(document.getElementById("map"));
--
http://econym.org.uk/gmap
The Blackpool Community Church Javascript Team
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---