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