geoman-io / leaflet-geoman

🍂🗺️ The most powerful leaflet plugin for drawing and editing geometry layers
https://geoman.io
MIT License
2.19k stars 431 forks source link

Rotation of an intersecting polyline #1498

Open osyka-yuri opened 3 months ago

osyka-yuri commented 3 months ago

If you draw an hourglass-shaped element, the center of rotation is incorrectly defined.

screencast

Falke-Design commented 1 month ago

In the background we always convert the layer to a polygon and then using its center. Here is a Leaflet core problem with the polygon center calculation

https://plnkr.co/edit/N60dXAzFbVUdy86B

grafik