you can use the following:
function logCoordenadas(marker, point) {
document.getElementById("latitud").value = point.lat();
document.getElementById("longitud").value = point.lng();
}
and add the following line to your load() function:
GEvent.addListener(map, 'click', mapClick);
Having 2 hidden fields called "latitud" and "longitud" in your form,
so when user clicks in the map (you have to add a function to add a
marker where the click is done) the hidden fields are valued with the
lat/lng of the marker....
And then you perform the usual operations to add the data to the DB...
On Aug 2, 5:33 am, amigoface <[email protected]> wrote:
> thanks :)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---