-
Notifications
You must be signed in to change notification settings - Fork 999
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
Do undo/crtl+z during a draw? #236
Comments
+1 for this, should also include backspace on line input and when at initial point of input, one further backspace cancels the action completely. Equally, a ctl+z on a point input would cancel the point input. The suggestion above would be a very useful addition to functionality.... |
Duplicate for #229 |
This is really great!!! This is already on official version? |
Yes, it is merged and in the build. |
I updated all the js, css and images, but it's hapening this error: Uncaught TypeError: Cannot read property 'tooltip' of undefined 02_leafletdraw.js:9 I have to update only leaflet and leaflet.draw? I'm using the version 0.2.3-dev of the leaflet.draw and 0.7-dev of the leaflet. |
I found the problem! The new leaflet.draw wait all the handlers defined. |
It seems you did something very unusual. Override? What handlers? What do you mean by defining them? Doesn't regular string assignment work for you? |
I'm working only with polygons and I did this to change the language:
What should be the correct form to do this? |
Well, you are completely redefining a class from the library, so no wonder you get errors when you skip properties. Base version of the object is gone by that time. I recomment using plain assignments, like
This is still bad design (you should cache everything), but at least it will work after the library is updated. |
Thank you so much @Zverik ! Works perfectly. |
I am drawing a polygon and do a wrong line. How can I undo this action, without redo all the polygon?
The text was updated successfully, but these errors were encountered: