> If I use the getLatLng() function and pass the address to it, it
> returns the point and then I pass that point to the GMarker function -
> everything is perfect.  The point that is returned from the getLatLng
> () function of course looks like this:
> (xx.xxxxx, -xx.xxxxx)

Ah, not quite.  The 'point' that getLatLng returns is in fact a
complex javascript object of the GLatLng type - from which you can
extract the coordinates in numbers/text.

> Now, if instead of using the getLatLng() function I try to create a
> variable with coordinates in that exact same format and pass it to the
> GMarker - it fails.  Am I missing something completely obvious?

You need to create a GLatLng object using your coordinates and pass
that.

In that light, have another look at -
   
http://code.google.com/apis/maps/documentation/introduction.html#The_Hello_World_of_Google_Maps
also see -
   http://econym.org.uk/gmap/example_map.htm

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