Hi,
I tried to find if somebody else had this "issue" but I didn't find
anything. It seems odd to me that I would be the only one, so I may be
doing something wrong.
My model in db has .city_lat & .city_lon attributes. I extract the
values for those from Geocoder's result, from .geometry.location. The
issue I'm facing is that the location object returns latitude and
longitude objects under names that keep changing.
For example, some time ago, I had in my code:
$('#city_lat').val(_data.geometry.location.a)
$('#city_lon').val(_data.geometry.location.b)
now, I have to have:
$('#city_lat').val(_data.geometry.location.b)
$('#city_lon').val(_data.geometry.location.c)
.location.a was changed into .location.b for latitude, similarly for
longitude.
Why is that? But more importantly, how do I code it so I don't have to
continuously check for google's changes of the longitude and latitude
objects names?
thanks,
martin
--
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.