#9373·Leaflet

Layers with animated coordinates shift incorrectly when zooming

Author: FeldrinHCreated Jun 16, 2024Updated Sep 24, 2026
Labelsbugneeds triage

Checklist

  • I've looked at the documentation to make sure the behavior isn't documented and expected.
  • I'm sure this is an issue with Leaflet, not with my app or other dependencies (Angular, Cordova, React, etc.).
  • I've searched through the current issues to make sure this hasn't been reported yet.
  • I agree to follow the Code of Conduct that this project adheres to.

Steps to reproduce

Create a CircleMarker, Polyline or other similar layer and then change its coordinates. Try zooming in and out while the coordinates change.

Expected behavior

The layer stays in its place.

Current behavior

The layer briefly jumps to an incorrect location while the zoom animation is ongoing. Layers where the coordinates are not actively changed behave correctly and stay in place.

Note: The issue seems to happen with both the canvas and SVG renderer.

Minimal example reproducing the issue

https://plnkr.co/edit/Ezv0b0skouMOfZXZ?preview

https://github.com/Leaflet/Leaflet/assets/5256211/0ed10dd2-d9e3-41d1-b710-cbb02a93512e

Environment

  • Leaflet version: 1.9.4
  • Browser (with version): Chrome 125.0.6422.142, Firefox 127.0
  • OS/Platform (with version): Windows 10