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

Make Modify hitdetect mode work with user projection #14638

Merged
merged 1 commit into from Apr 5, 2023

Conversation

ahocevar
Copy link
Member

@ahocevar ahocevar commented Apr 4, 2023

Previously, when configuring a Modify interaction with hitDetect, dragging would not work. This can easily be reproduced by adding useGeographic(true) to the modify-icon.html example.

This pull request adds a missing coordinate transform, and makes sure the modify node geometry has the coordinates of, instead of a reference to the modify candidate geometry. This is required to avoid misses due to coordinate transform floating point inaccuracies, which would avoid matching up the node with the r-tree.

@github-actions
Copy link

github-actions bot commented Apr 4, 2023

📦 Preview the website for this branch here: https://deploy-preview-14638--ol-site.netlify.app/.

@ahocevar ahocevar merged commit c78be2c into openlayers:main Apr 5, 2023
8 checks passed
@ahocevar ahocevar deleted the modify-hitdetect-userprojection branch April 5, 2023 13:34
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