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

Advanced snapping configuration toggling capability #4478

Merged
merged 4 commits into from
Jul 27, 2023
Merged

Conversation

nirvn
Copy link
Member

@nirvn nirvn commented Jul 26, 2023

This PR implements a functionality to toggle individual vector layer's snapping enabled state for projects' snapping configuration mode set to advanced. A quick showcase first:

Screencast.from.2023-07-26.16-43-19.webm

As with everything else we do in QField, the implementation tries to avoid adding UI elements until it is relevant and useful. As such, the snapping badges are only visible when QField is set to digitizing mode. When in browse mode, the badges disappear.

Alongside the previous PR that added a global snapping on/off switch, this gives us really nice snapping flexibility straight within QField.

Copy link
Member

@domi4484 domi4484 left a comment

Choose a reason for hiding this comment

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

Looks good to me!

src/qml/Legend.qml Show resolved Hide resolved
@qfield-fairy
Copy link
Collaborator

@nirvn nirvn merged commit 3d4136c into master Jul 27, 2023
19 checks passed
@nirvn nirvn deleted the snapping_toggle branch July 27, 2023 02:06
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.

3 participants