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

Vertex editor polishing and improvements #4724

Closed
wants to merge 15 commits into from
Closed

Vertex editor polishing and improvements #4724

wants to merge 15 commits into from

Conversation

nirvn
Copy link
Member

@nirvn nirvn commented Nov 1, 2023

This PR gets rid of a bunch of warnings when using the geometry editor tool, and insures the vertex model highlight is only shown when the vertex editor is activated.

The vertex model highlight also got a bit of a facelift to improve the looks (also more closely matches that of QGIS).

Before:
Screenshot from 2023-11-01 17-11-15

PR:
image

Note the far more muted segment mid-point markers in the screenshot above. That's deliberate. When already cycling through vertices and hitting the add vertex button, QField now does a much better job at hinting at the user that they are expected to select a mid-point prior to moving:
image

Last but certainly not least, the add vertex button is now much more clever in the way it adds a new vertex when not yet cycling through the vertex model. In the past, the vertex addition selection might have felt "random". Now, it will automatically select the segment mid-point nearest to the coordinate cursor.

It is also possible to select a vertex (or segment mid-point) by tapping on the device screen. This offers a fast alternative to cycling via tool buttons.

Screencast:

Screencast.from.2023-11-01.18-28-29.webm

Sponsored by National Land Survey of Finland with the help of GISPO.

@qfield-fairy
Copy link
Collaborator

qfield-fairy commented Nov 1, 2023

@JuhoErvasti
Copy link

Hi, I had the opportunity to test these changes and here are some things I noticed:

  • I had the same issue with vertex markers persisting after clicking Cancel as noted here, although I could reproduce the same issue in an earlier version (v.3.0.6) so it's probably not related to this specific PR
  • When editing a point layer since there is no add vertex button selecting the closest vertex to the coordinate cursor does not work and you have to click the point that you want to move again.
  • Overall I think this is a significant improvement to the vertex editor. Editing feels much easier and more intuitive with these changes. I wasn't able to find any bugs either.

@nirvn
Copy link
Member Author

nirvn commented Nov 18, 2023

@JuhoErvasti , thanks for the feedback. The persisting vertex markers issue has been fixed. I've taken note of the point issue, although if you could share a screencast it'd probably help me better understand what you expect here.

@nirvn nirvn closed this Nov 18, 2023
@JuhoErvasti
Copy link

@nirvn Hi, apologies for taking so long to get back on this. So currently to move a point you have to

  1. Select the point you want to edit
  2. Turn on editing
  3. Select the point (or vertex) again

As demonstrated in this screencast:

screencast_point.mp4

My thought was that since a (single) point only has one vertex, when you activate the vertex editor it could either automatically select the single vertex to be edited or you'd have a button which selects it, similar to cycling through the points with lines and polygons. So step 3 could be skipped or made faster. I think it would be a bit more user-friendly this way, not sure if there'd be unintended consequences though.

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

Successfully merging this pull request may close these issues.

3 participants