aha! I knew it was something basic - god I hate being a newb ;)
On Jun 22, 11:39 am, Andrew Leach <[email protected]> wrote: > On Jun 22, 4:21 pm, thebigkrumm <[email protected]> wrote: > > > > > I think I must be doing something pretty basic incorrectly, but I > > can't see it. > > You can't do this: > var markers = "(27.298265628398845, -82.49839782714844)"; > var latLon1 = new GLatLng(markers); > > because markers is just a String of characters, and GLatLng is > expecting two Numbers. You might just as well be writing > new GLatLng("some string of letters"); > which is meaningless. > > I'm surprised you get anything at all. If you must do it that way, > make markers into an Array of Numbers: > var markers = [27.298266,-82.498398]; > var latLon1 = new GLatLng(markers[0],markers[1]); > > Note that six decimal places is more than enough! > > 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 -~----------~----~----~----~------~----~------~--~---
