PaulLeCam / react-leaflet

React components for Leaflet maps
https://react-leaflet.js.org
Other
5.19k stars 887 forks source link

Vector layer drift on zoom and pan #1142

Open Shadowfita opened 2 months ago

Shadowfita commented 2 months ago

Bug report in v4

Before opening an issue, make sure to read the contributing guide and understand this is a bug tracker, not a support platform.

Please make sure to check the following boxes before submitting an issue.\ Issues opened without using this template will be closed unless they have a good reason not to follow this template.

Expected behavior

Should not drift.

Actual behavior

It drifts. Example can be seen here: https://github.com/Leaflet/Leaflet/issues/7466

Steps to reproduce

Add a PolylineMarker dynamically to the map after the map has been created / rendered.

I have tried with the zoomAnimation prop as mentioned here: https://github.com/Leaflet/Leaflet/issues/7466 but it does not seem to make a difference. This issue occurs when zooming and when mouse-up after panning/moving the map.