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

[bugfix] Fix snapping for single point lines/poly #324

Closed
wants to merge 1 commit into from

Conversation

KenAlin
Copy link
Contributor

@KenAlin KenAlin commented Jul 27, 2018

Hi,

This PR aims to fix a bug detected in snapping. After drawing a "single point line" (a line where begin = end), console errors occurs.

leafletpm bug snapping

@codeofsumit
Copy link
Contributor

Hi @KenAlin, thanks so much for your contribution. I'm thinking of fixing this in the way that a PolyLine is removed when it has only one coordinate because that's how we do it during vertex deletion as well.
Also you can't add another vertex to it as it's just one marker when editing.

What do you think?

@codeofsumit codeofsumit added bug and removed bug labels Sep 21, 2018
@codeofsumit
Copy link
Contributor

closed in favor of #349

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 this pull request may close these issues.

None yet

2 participants