Leaflet icon indicating copy to clipboard operation
Leaflet copied to clipboard

SVG Overlays disappearing on pan/zoom, being zoom-animated wrong

Open sisou opened this issue 7 years ago • 0 comments

In the basic rotate.html example (https://rawgit.com/fnicollet/Leaflet/rotate-master/debug/rotate/rotate.html), the polyline disappears after mouseup on panning, is animated out of the view on zoom. The line reappears when the view is rotated.

Additionally, SVG rectangle overlays are animated down when zooming while the upper border of the map is within the view (see here: https://rawgit.com/fnicollet/Leaflet/rotate-master/debug/rotate/rotate-bounds.html.) To replicate, zoom out and pan up until you can see the upper edge of the world map. Zoom in or out and observer where the blue rectangle is animated to during the zoom animation, before snapping back into place on zoomend.

sisou avatar Apr 03 '17 10:04 sisou