Leaflet / Leaflet.draw

Vector drawing and editing plugin for Leaflet
https://leaflet.github.io/Leaflet.draw/docs/leaflet-draw-latest.html
MIT License
1.97k stars 992 forks source link

API Cleanup #324

Open justinmanley opened 10 years ago

justinmanley commented 10 years ago

A proposal for API changes that will bring the Leaflet.draw API more in line with the Leaflet API and make it more user-friendly.

Chime in if you think Leaflet.draw would benefit from these changes! Also would love to hear if there are good reasons that I've missed for the oddities and contradictions of Leaflet.draw that I've outlined above.

mourner commented 10 years ago

Sounds pretty good to me :+1:

justinmanley commented 10 years ago

I'm working on this in manleyjster/Leaflet.Toolbar. (I figured it was general enough to merit its own plugin).

Will post an update when I have a working version which fully reproduces existing functionality.

jacobtoye commented 10 years ago

I think this is a great idea. Once ready Leaflet.draw can replace it's toolbar implementation with your plugin.

justinmanley commented 9 years ago

Hey folks - Leaflet.Toolbar is ready - at the very least, it's ready for us to have a discussion about it. I submitted a PR (#354), interested to hear your thoughts!

pztrick commented 9 years ago

:+1:

I'm already looking forward to rolling some custom toolbars in my projects with Leaflet.Toolbar, and will probably wait for the next Leaflet.Draw release that ships with it.

kyletolle commented 9 years ago

I'm also looking forward to Leaflet.Toolbar being used in Leaflet.draw, primarily for the popup controls that can be added to individual features. It's great to see all the work done to make that happen! Thanks @manleyjster! This will enable a much more intuitive editing experience in my application.

fnicollet commented 9 years ago

Great work @manleyjster , this is a great addition to the plugin!