On 2 February 2012 22:18, Michael Laird <[email protected]> wrote:
> This is a JavaScript problem of how to manipulate the LatLng object.  lines.
> What needs to change?

I would definitely go for .lat() and .lng() and use them separately.

Conjecture because I can't verify this at the moment:--
alert(results[0].geometry.location) will display
"(43.098337,-77.441738)" because that's using the [default]
.toString() method of the .location object. However there's no
guarantee that using the *static* toString() method/function will
stringify the object correctly. You might be able to use
results[0].geometry.location.toString() to get what you want; but
.lat() and .lng() are there for the taking without replacing brackets
and the like.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to