Skip to content
This repository has been archived by the owner on Sep 26, 2022. It is now read-only.

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

Open
sisou opened this issue Apr 3, 2017 · 0 comments
Open

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

sisou opened this issue Apr 3, 2017 · 0 comments

Comments

@sisou
Copy link
Collaborator

sisou commented Apr 3, 2017

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.

laobubu pushed a commit to laobubu/Leaflet that referenced this issue Aug 4, 2017
fnicollet pushed a commit that referenced this issue Aug 5, 2017
* Improve Point.rotateFrom performance

* Add `rotation` and `rotateWithView` option for Markers
Plus setRotation(rad)

* Fix: Vector disappears when panning.

partially solved #23
ref: Leaflet/Leaflet@c931d330fea

* Add some comment, refine rotated-marker demo

* Fix: drag rotated markers

* Fix: icon transform origin wrong when options not given
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant