> ... I did try placing
> this script into the <head> but that only produced errors when giving
> it a function name, calling the function onload in <body> and then
> trying to get an InfoWindow to display. The map was there, all the map
> pins were there, but nothing happened when they were clicked.

I would guess that when you put your map-making into a function to be
called onload, you didn't set up the map object to remain in the
global scope.  So after the function completed, the map object was no
longer available to e.g. onclick function.

Example-

var map;

function myonload()
{
     map = GMap2 ....
}

After the function completes, map still exists for other functions to
work on.

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

Reply via email to