-
Notifications
You must be signed in to change notification settings - Fork 29
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
instantiate drawing programatically #116
Comments
I have tried this based on other issues here, but I keep getting an error. ERROR TypeError: Cannot read property 'Rectangle' of undefined
Any pointers as to what I might be doing wrong? The goal is to put the map into a mode where I can draw a rectangle on the map. |
I am needing to draw a rectangle on the map without having to press a button. I'm having difficulty figuring out how to put the map into drawing mode without the button. I've tried based on examples from leaflet-draw, but nothing seems to be working for me. Is there a way to enable the drawing mode to add a rectangle programatically?
The text was updated successfully, but these errors were encountered: