Skip to content
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

Is there any way to limit drawing to one shape only? #14

Open
AntwanSherif opened this issue Feb 27, 2020 · 0 comments
Open

Is there any way to limit drawing to one shape only? #14

AntwanSherif opened this issue Feb 27, 2020 · 0 comments

Comments

@AntwanSherif
Copy link

AntwanSherif commented Feb 27, 2020

I want to enable the user to draw only one polygon.

One way of doing this is to set "Polygon Control" to false when the user draws a shape and then reset it again to true if the user deletes the shape, but for some reason changing the "PolygonControl" prop values doesn't re-render and the control is always visible.

Am I doing something wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant