I just wondered if anyone knew of a simple script available that will do the following:
Load a google map in view, when clicked it displays a marker that will save t
// add a click event handler to the map object
GEvent.addListener(map, "click", function(overlay, latLng)
{
// display the lat/lng in your form's lat/lng fields
document.getElementById("latFld").value = latLng.lat();
document.getElementById("lngFld").value = latLng.lng();
});
I thinks when you will get the lat-lng then you can place marker.