hosuaby / Leaflet.SmoothMarkerBouncing

Smooth animation of marker bouncing for Leaflet.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mouse zoom doesn't preserve marker location

elvisef opened this issue · comments

While zooming, only one marker is still in place, other markers change locations.
Zaznaczenie_271
Zaznaczenie_272

I fixed this here (commented out code):

L.Marker.prototype._setPos = function(pos) { oldSetPos.call(this, pos); // if(this._bouncingMotion === undefined) { // this._bouncingMotion = {}; // } this._bouncingMotion.x = pos.x; this._bouncingMotion.y = pos.y; this._calculateTransforms(); };

Please take a look at this, as this breaks functionality.
Can someone confirm this ?

This code was added to work with cluster plugin. Do you use any other Leaflet plugins ?

Nope, only this one.

Currently, this problem is confirmed only in case of plugin used on old (non 3D-enabled) browser.

Problem is not relevant for v2.0.1 because this code no longer exists. I will close this issue. If it re-appers it will be reopened.