Leaflet icon indicating copy to clipboard operation
Leaflet copied to clipboard

Vector layers are cropped when rotated

Open fnicollet opened this issue 8 years ago • 6 comments

Following the original issue, there is still one problem with vector rotation, when the map is at zoom 0/1.

We need to backport this fix from @IvanSanchez work https://github.com/Leaflet/Leaflet/commit/a2595bbfe8109dc9cd24a15d28e0e4e6048e2e5f

Transformation is now done using the center and not the topLeft corner which was clamped (calculated in lat/lng).

fnicollet avatar Jul 24 '16 09:07 fnicollet

Can you support for version 0.7.7

truongtv22 avatar Sep 02 '16 14:09 truongtv22

@hl1994 not possible, too many things related to Leaflet 1.0 which separate layer panes

fnicollet avatar Sep 02 '16 14:09 fnicollet

Hi @fnicollet. Loving your work so far, but has there been any progress on getting vector layers to rotate correctly? (My Leaflet project has begun using vector layers extensively, so I've had to stop using the rotation branch.) I'd offer to help, but my JS skills probably aren't up to it.

jeremygbyrne avatar Jan 29 '17 13:01 jeremygbyrne

Hello @jeremygbyrne not really any progress on this, sorry. My branch has been merged in the leaflet repo, so maybe one day it will be fully working. It is hard to keep up with the leaflet master changes

Fabien

fnicollet avatar Jan 29 '17 13:01 fnicollet

Hi @fnicollet Thanks for the reply! Does that mean the main branch now supports rotation, somehow?

jeremygbyrne avatar Jan 30 '17 02:01 jeremygbyrne

Not really, it just means that there is now : https://github.com/Leaflet/Leaflet/tree/rotate While it was on my account before: https://github.com/fnicollet/Leaflet/tree/rotate-master

But both lack updates ...

Fabien

On Mon, Jan 30, 2017 at 3:47 AM, Jeremy Byrne [email protected] wrote:

Hi @fnicollet https://github.com/fnicollet Thanks for the reply! Does that mean the main branch now supports rotation, somehow?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/fnicollet/Leaflet/issues/1#issuecomment-275969846, or mute the thread https://github.com/notifications/unsubscribe-auth/ABLtoQjyH8xgXJjzUOo4y3ewUqcr3Uxzks5rXU84gaJpZM4JTiY9 .

-- Fabien Nicollet Tel : +33 (0)6 60 54 72 20

fnicollet avatar Jan 30 '17 08:01 fnicollet