Hello all! I have a question - maybe it's a simple one, maybe I'm just going about it the wrong way. But I appreciate any insight you all can give.
Using the API I have a complete script that works perfect as is. I can send multiple addresses to it and it will plot all the points on the map as desired. The part I want to change is how the coordinates are obtained and I cannot get this to work. 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) 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? Let's use this as an example. I used getLatLng() to find the coordinates of The New York Stock Exchange. The value that 'point' returns is: (40.024814, -79.290448) 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! :-) Thnx! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
