I made a Javascript library that lets me drag a marker from a dragzone to one or more dropzones.
The problem is… the mouseup event happens over the marker I’m dragging, not the dropzone.
How can I detect in which dropzone was the marker dropped, and in what coordinates?
Here’s my script:
if having a new instance is the only special thing you need… you can use the jQuery library to clone your initial clicked upon marker, and drag that clone to where you want it to be.
You can also modify the cloned marker’s attributes with jQuery depending on your needs.