Add rotate support
It would be great to add support of rotating poligons while editting
I second this. This would be awesome.
I too agree this functionality would be EXTREMELY useful and awesome.
+1
+1 That would make a big difference.
Making them draggable while editing too (I haven't found the code to enable that).
+1
@jandm did a presentation today at Foss4G.be and showed us a convincing demo. Look at his work
Thank you very much, Michael, nice meeting you there ! I added resize and rotation handles + made geometries draggable. Demo is here My first steps in Leaflet (i'm a Java guy), so all comments are welcome.
@jandm hi thanks for your demo. I have a problem replacing original leaflet-draw with your one, i am using leaflet 1+ and when i click edit button i have
Uncaught TypeError: Cannot read property 'lat' of null at Object.project (?pkg=full&version=v3.5.4:formatted:10450) at Object.latLngToPoint (?pkg=full&version=v3.5.4:formatted:10465) at e.project (?pkg=full&version=v3.5.4:formatted:10808) at e._getMiddleLatLng (leaflet.draw-src.js:1381) at e._createMiddleMarker (leaflet.draw-src.js:1314) at e._initMarkers (leaflet.draw-src.js:1211) at e.addHooks (leaflet.draw-src.js:1160) at enable (?pkg=full&version=v3.5.4:formatted:14093) at e._enableLayerEdit (leaflet.draw-src.js:2793) at eachLayer (?pkg=full&version=v3.5.4:formatted:12662) at e.addHooks (leaflet.draw-src.js:2688) at enable (?pkg=full&version=v3.5.4:formatted:14093) at enable (leaflet.draw-src.js:2666) at HTMLAnchorElement.s (?pkg=full&version=v3.5.4:formatted:13906)
With original leaflet-draw it works fine.
could you help with fixing it? Thx
+1 also very keen for this (I'd like to rotate a rectangle, but without the skewing that ocurs in @jandm's fork)... exploring options to contribute.
FYI - I've made a start on a plugin to add rotate support for Leaflet.draw:
https://github.com/onaci/Leaflet.draw.rotate
Have only only implemented rectangle rotation so far, PR's are welcome!
+1