Rotating Layers with Leaflet Rotate #1097
Unanswered
cubecleveland
asked this question in
Questions & Help
Replies: 1 comment
-
The rotate branch of Leaflet is not ready for use and is also not maintained (1105 commits behinde the master). We will not support map rotation. The rectangle "rotation" while drawing and editing is done here: leaflet-geoman/src/js/L.PM.Utils.js Line 191 in 1fdc918 And the rotation of layers is done here: leaflet-geoman/src/js/Mixins/Rotating.js Line 112 in 1fdc918 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
Started using the Leaflet rotate plugin to rotate the bearing of the map.
The plugin Works great but stated to see some weird behaiour when integrating editing on the rotates layer.
Here is a jsfiddle having the 2 libs together
https://jsfiddle.net/kua1rs5v/
Issus occur especially when drawing a rectangle as it seems the algorithm atatches itslef to the current tile, is there any way that can be fixed or taken into consideration ?
As of now, we have limited the drawing of rectangles but it would be great if u can give us some guidance of maybe fixing this issue. Issue is also when rotating a line.
Seems like the only shape that work with a rotated tile layer is polygon.
thanks again!
Beta Was this translation helpful? Give feedback.
All reactions