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.
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?