On May 2, 9:14 pm, nimrod <[email protected]> wrote:
>
> I need to allocate a hidden textfield with the lat and another hidden
> textfield with lng. When dragging the marker the lat/lng changes but I
> get both lng and lat in the same textfield. I need them in one each. I
> see the lng/lat changes in the textfield when moving around the
> marker...but as said...I need it seperated.

> document.getElementById("lat").value=marker.getPoint().lat();
> document.getElementById("lng").value=marker.getPoint().lng();});

I think there may be an issue with using getPoint() instead of
getLatLng(). The documentation implies they are the same, but your
result tends to suggest otherwise and what you are getting appears to
be the String representation of getPoint(). Use getLatLng() instead
and see if that makes a difference.

If it doesn't, please post a link. Visual debugging has its limits.

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

Reply via email to