Skip to content

[Bug] Cannot prevent creating self-intersecting features in polygon mode with editable option #808

@risusinf

Description

@risusinf

Providing validation function with ValidateNotSelfIntersecting test successfully prevents creating invalid geometries when finishing drawing, but it has no effect on editing in polygon mode.

Reproduce:
Provide validation function for polygon mode in options
Change existing polygon into self-intersecting shape

Sandbox: https://jsbin.com/deqisir/edit?html,output

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions