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

perf: Add a continuousCloseProximity option to annotations #1106

Merged
merged 2 commits into from
Sep 7, 2021

Conversation

manthey
Copy link
Contributor

@manthey manthey commented Sep 7, 2021

No description provided.

@manthey manthey force-pushed the continuous-close-proximity branch from acd4d76 to d9eb72e Compare September 7, 2021 15:08
@manthey
Copy link
Contributor Author

manthey commented Sep 7, 2021

@boucaud, If you set continuousCloseProximity to true, it will always close a dragged polygon on mouse up. You should be able to test this with the build artifacts produced by the actions.

}
if ((ccp || ccp === 0) && evt.event === geo_event.actionup &&
(cpp === true || layer.displayDistance(vertices[0], null, evt.mouse.map, 'display') <= cpp)) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be ccp === true ?

Right now, it works but I have to set continuousPointProximity to true as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, my mistake.

@boucaud
Copy link

boucaud commented Sep 7, 2021

Thanks ! I can confirm it works.

@manthey manthey merged commit ccf2a37 into master Sep 7, 2021
@manthey manthey deleted the continuous-close-proximity branch September 7, 2021 17:46
@github-actions
Copy link

github-actions bot commented Sep 7, 2021

🎉 This PR is included in version 1.4.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants