On May 21, 9:31 am, Ross <[email protected]> wrote: > Very good website. thanks alot! > > How would you do a "dragend" function to update where the marker moved > to? > I got the below but doesn't work. > > GEvent.addListener(map, "dragend", function(overlay, thePoint) { > var point = new GLatLng(thePoint.y, thePoint.x); > document.getElementById("save_form").spot_lat.value = > thePoint.x; > document.getElementById("save_form").spot_long.value > = thePoint.y; > }); >
We need more context. Please follow the posting guidelines: http://groups.google.com/group/Google-Maps-API/web/suggested-posting-guidelines http://groups.google.com/group/Google-Maps-API/web/why-including-a-link-is-critical Or read the documentation: http://code.google.com/apis/maps/documentation/reference.html#GMarker.dragend (there is only value returned...) -- Larry > On May 21, 12:37 pm, Ralph Ames <[email protected]> wrote: > > > > > Try this to starthttp://econym.org.uk/gmap/ > > > Ralph- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
