sepoto Posted April 15, 2012 Share Posted April 15, 2012 I am now familiar with the existence of the ".draggable()" function of jQuery. I am mulling over how I would integrate the dragging and dropping of an element into an event listener like this one: google.maps.event.addListener(myMap, 'click', function(myEvent){var myClickLatLng=myEvent.latLng;// now process myClickLatLng}); First I am wondering if the dragging and dropping of an element would constitute a 'click' and second if the click event is fired how am I to know which element was dropped? Again I thank all of you for your time and wisdom. I am hoping my post is in the right forum as this is for JavaScript which is closely related. Thank You! Link to comment Share on other sites More sharing options...
sepoto Posted April 16, 2012 Author Share Posted April 16, 2012 It looks like the best example I have found is located here and uses specifically the jQuery UI library. It looks like some good code. http://jqueryui.com/demos/droppable/ It also looks like the function can be modified like this: drop: function(event, ui) { alert($(ui).attr("id") + " was dropped");} Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.