Skip to content

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

@AntwanSherif

Description

@AntwanSherif

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions