maximeh/leaflet.bouncemarker — pull request #8 by swernerus (2013-05-15 15:06:52+00:00)
Title: Markers bouncing at the wrong place

The animation is fine on map load, but the markers are bouncing at the
wrong place when the user has zoomed or dragged the map and one is
calling the "bounce" method on the markers afterwards.

To get the marker position on the screen (x, y), we should use the
original latitude and longitude (don't change) and not the original
pixel coordinates (change upon zoom/drag).

This can easily be reproduced on the plugin demo on github. Just make the marker bounce after zooming/dragging the map. It will bounce at the original X,Y location which is wrong.