-
Notifications
You must be signed in to change notification settings - Fork 993
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: double click to the fixed add button #133
Comments
Yeah you are right, it is. We would probably want to add a save button to the toolbar, to go along with the cancel button. Not planning on implementing this any time soon, but still is a decent idea. |
I thought about implementing this as a setting when instantiate the draw controller: var drawControl = new L.Control.Draw({
draw: {
polyline: {
autoExit: false // disables auto-exit when fishing a polyline
}
edit: {
autSave: true // saves features without needing the "save" button
}
}); What do you think @jacobtoye ? |
Yeah seems reasonable. Thinking about it we would probably be fine without a save button. When the shape is finished the create event is fired, but the handler is not disabled. |
I'll see if I can make a pull for this during the weekend =) |
Implemented in PR #166 |
good job |
If you add a lot of layers, it is inconvenient to constantly push the add button
The text was updated successfully, but these errors were encountered: