I don't think it's possible to pass complex objects, like a GLatLng, 
between frames, particularly if only one of those frames has loaded the 
API and therefore knows the GLatLng Class definition.

What you can to do is write a helper function that runs inside the frame 
that contains the map and passes only simple objects (like strings or 
numbers) between the frames.

See: http://econym.org.uk/gmap/iframes.htm


// In the frame that contains the map
function getMapPoint() {
   return map.getCenter().toUrlValue(5);
}

// In another frame
document.getElementById("foo").value = parent.getMapPoint();


Warning: Debugging Javascript that crosses between iframes is 
significantly harder than debugging Javascript that operates in a single 
frame.

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

Reply via email to