Leaflet.Path.Transform icon indicating copy to clipboard operation
Leaflet.Path.Transform copied to clipboard

Rotating a rectangle transform it into a non-rectangle polygon

Open nchevobbe opened this issue 5 years ago • 3 comments

Hello there, first of all, thanks for providing such a useful library :)

I think I'm seeing something odd with rotation. Basically, when a transform is enabled on a rectangle, after rotating it, its diagonals don't have the same distance anymore (which is one of the rule that allow to check that a polygon is a rectangle).

I made a small test app so you can see by yourself: https://leaflet-path-transform.glitch.me/

let me know if you need more information.

nchevobbe avatar Jun 04 '20 17:06 nchevobbe

https://github.com/w8r/Leaflet.Path.Transform/issues/39

Groxot avatar Jun 09 '20 12:06 Groxot

worked here. https://github.com/kevinsamyn/Leaflet.Path.Transform/blob/master/dist/L.Path.Transform-src.js But in this repo changed only dist file.

Groxot avatar Jun 09 '20 12:06 Groxot

Hey @Groxot , thanks a lot! I tried your version at https://leaflet-path-transform.glitch.me/ It looks a lot better, but the diagonals are still not equal when rotating.

nchevobbe avatar Jun 09 '20 18:06 nchevobbe