Skip to content

On poly intersection during edit, revert marker to original position #3

@chugcup

Description

@chugcup

During editing, if a Poly marker is being dragged (whenallowIntersection is false) and the marker intersects itself, the handler will call _onMarkerClick which will simulate clicking the marker. This will remove the marker from the polygon instead of reverting back to its original position (which is the more user-friendly option).

this._onMarkerClick(e); // Remove violating marker

The comments in the source indicate the marker is reverted to its original position, but its a lie.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions