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

Enable/Disable controls dynamically #13

Open
AntwanSherif opened this issue Feb 21, 2020 · 0 comments · May be fixed by #25
Open

Enable/Disable controls dynamically #13

AntwanSherif opened this issue Feb 21, 2020 · 0 comments · May be fixed by #25
Assignees

Comments

@AntwanSherif
Copy link

I want to limit the user to only draw one polygon at a time. If they want to add another one they have to delete it first and then redraw another one.

To achieve this, I have an internal state used as a flag of whether to show or hide "polygonControl", but the component is not re-rendering, which makes the polygon control always displayed.

Is there any shortcut to achieve this?
Or even better to disable the polygon button dynamically?

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

Successfully merging a pull request may close this issue.

2 participants