Andrew,

Thank you so much sir!  I was afraid it was going to be something
completely stupid and easy.  I swear to you on 2 things:

1. I'm not a moron ;-)
2. I did try finding the answer in the documentation.

Unfortunately - reading through Google's documentation for their API's
is sometimes like reading old stereo instructions in Japanese (hint: I
can't read Japanese!)  hah

Your explanation was very clear, concise and non-condescending.  So,
once again...I thank you very much for you help!!

On Aug 20, 4:45 pm, Andrew Leach <[email protected]>
wrote:
> On Aug 20, 7:48 pm, TheUnknown <[email protected]> wrote:
>
>
>
> > If I instead create a variable, say:
>
> > var customPoint = '(40.024814, -79.290448)';
>
> > and pass that to the GMarker - it fails even though it is the exact
> > same value that the 'point' is sending it.  Please, if anyone can
> > point out where my logic fails and my stupidity steps in - I would be
> > greatly appreciative!  :-)
>
> Er, well, yes... the clue is in the documentation. GLatLng takes two
> Numbers, not one String. Your customPoint variable is a string of
> characters. It may look like the output of getLatLng() -- but that's
> because the output is formatted as a string of characters too. To
> create a GLatLng you need two numbers:
>
> var lat = 40.024814; // not '40.024814'
> var lng = -79.290448;
> var customPoint = new GLatLng(lat,lng);
> var marker = new GMarker(customPoint,opts);
>
> 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