Leaflet.draw icon indicating copy to clipboard operation
Leaflet.draw copied to clipboard

Add the ability to draw curves

Open qpincon opened this issue 3 years ago • 7 comments

Adding the optional dependency Leaflet.curve will enable the drawing of curves. It is only available for Leaflet >= 1.0. and with the L.curve library imported, with a graceful fallback if it's not the case. I would appreciate a review and get your comments if anything is missing.

qpincon avatar Mar 15 '21 10:03 qpincon

It would be really nice if someone spend some time on reviewing this issue - I spent quite some time on it and I think it is a nice feature to add to the project. Thank you !

qpincon avatar Mar 22 '21 12:03 qpincon

It is pretty clear that this plugin is abandoned, see https://github.com/Leaflet/Leaflet.draw/graphs/contributors

Not sure is there a viable replacement - alternative project or a maintained fork

matkoniecz avatar Mar 29 '21 15:03 matkoniecz

@johnd0e‬‏ here

t1a2l avatar Apr 10 '21 12:04 t1a2l

Adding the optional dependency

I do not like this approach, when 3rd-party dependencies need to have special support from main library. It would be better to have some extension methods to be able to add any such feature.

johnd0e avatar Apr 10 '21 12:04 johnd0e

@johnd0e About your comment, I agree that it is not ideal. I guess a solution would be to create yet an other repo making the bridge between Leaflet.Draw and Leaflet.Curve, but that would require some changes in the architecture of Leaflet.Draw that are beyond the scope of this PR. I suggest merging this PR as-is (if all is good), and migrate in the future if this new architecture comes to life.

qpincon avatar Jul 28 '21 13:07 qpincon

It seems that the travis checks are stuck, I tried closing and reopening the issue, with no success.

qpincon avatar Aug 06 '21 12:08 qpincon

Check out leaflet-geoman. It practically does everything leaflet-draw does and then some. Plus it's not, you know, abandoned.

patrickoliveras avatar Aug 31 '21 21:08 patrickoliveras