I am having a problem with leaflet markers. The problem is that when I drag a marker with a lower z-index under another marker with a higher z-index and let it go, it makes another marker. I have a click event that adds a marker to the map when I click it.

This happens in Chrome and Internet Explorer 11. This does not happend in Firefox.

Another problem I noticed was that when I would drag a marker outside the browser window and relase in Firefox, it would mess up things up.

JSFiddle http://jsfiddle.net/eaflores/x9JzP/

closed as off-topic by Andre Silva, xunilk, Vince, BERA, whyzar Jan 4 '18 at 8:46

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This problem cannot or can no longer be reproduced. Changes to the system or to the asker's circumstances may have rendered the question obsolete, or the question does not include a procedure to enable potential answerers to reproduce the same symptoms. Such questions are off-topic as they are unlikely to help future readers, but editing them to include more details can lead to re-opening." – Andre Silva, xunilk, Vince, BERA, whyzar
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    Im using Google Chrome, seems like it does not do this in Mozilla Firefox. – Enrique May 1 '14 at 20:51
  • doesn't seem to do this in Firefox here either... – DPSSpatial May 1 '14 at 21:11
  • and i also see it in chrome – sfletche May 1 '14 at 21:40
  • Enrique: you can (and should!) update your question with additional details you have at any time. Just click edit below the question. That will also help to bring it "back to the top" for more attention. – BradHards May 1 '14 at 22:44
  • 2
    I'm not seeing the problem with the current jsFiddle and Chrome. Did you fix it? – Josh Aug 5 '14 at 3:28