Google maps API additional events

65 views Asked by At

Is there any event in Google maps API,

which gets fired when I drag and drop an external object on anywhere on the Google map , so that I can get the latitude and longitude of the dragged object? I want this to be done using pure Javascript itself without any library being used.

I have gone through all the events from the documentation, none of the events get fired when an external object is dropped on to it.

1

There are 1 answers

2
scgough On BEST ANSWER

Is it a draggable marker? Could you use "mouseout"?

google.maps.event.addListener(marker, 'mouseout', function() {

 //do your stuff here

});