Skip to content

Make vertices draggable and droppable#268

Merged
koebi merged 47 commits intomainfrom
drag-drop-II
May 9, 2025
Merged

Make vertices draggable and droppable#268
koebi merged 47 commits intomainfrom
drag-drop-II

Conversation

@merydian
Copy link
Collaborator

This includes all new changes, makes #222 obsolete, closes #204 and is related to #206.

@TheGreatRefrigerator
Copy link
Collaborator

Hey @merydian you leaked your API key in this branch. Best remove it from the commit, force push to the branch, delete the key from your account and create a new one :)

@MichaelsJP
Copy link
Member

Incredible work @merydian !

Only comment from my side, it would be cool if the preview feature can work on an existing list of points when toggled.

  • When enabled, the route preview is generated on the set points.
  • When disabled, the points remain but switch to the default flight of the crow representation.

@merydian merydian marked this pull request as ready for review November 13, 2024 13:40
@koebi
Copy link
Collaborator

koebi commented Nov 15, 2024

Hey,
I played around with this on QGIS 3.34.12, these are my findings so far:

  • Toggling LivePreview when no valid provider is set deletes all nodes.
  • Once a list is "final" (i.e. once I have double-clicked), is there a way to drag/drop nodes? I haven't found one…
  • The MapTool doesn't switch back after double-clicking. I figured that was fixed at some point?

@koebi
Copy link
Collaborator

koebi commented Nov 22, 2024

Two more comments:

  • Can we enable dragging points when the list is "final"?
  • Is there a way to display points while they are being dragged, and to update the RubberBand?

Copy link
Collaborator

@koebi koebi left a comment

Choose a reason for hiding this comment

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

Two more general comments:

  • on profile change, the preview should be re-generated
  • tests are missing.

As for the translation:
As usually, you can provide the tr()-functions, I will provide the translation.

Comment on lines 894 to 898
"Please use a different point",
"""Could not find routable point within a radius of 350.0 meters of specified coordinate.
Use a different point closer to a road.""", level=Qgis.MessageLevel.Warning, duration=3)
Use a different point closer to a road.""",
level=Qgis.MessageLevel.Warning,
duration=3,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Translation is missing

Copy link
Collaborator

Choose a reason for hiding this comment

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

See comment on ORStools/ORStoolsDialogUI.py.

Comment on lines 916 to 918
"Please use a different point",
"""Could not find routable point within a radius of 350.0 meters of specified coordinate.
Use a different point closer to a road.""",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Translation missing

@koebi
Copy link
Collaborator

koebi commented Nov 22, 2024

Moreover, we should look at getting this combined with the ESC/Right-Click feat merged yesterday.

@koebi
Copy link
Collaborator

koebi commented May 8, 2025

  • make radius for "grabbing" points bigger
  • clearer documentation (see move docs to github pages #308 )
  • numbering of points gets messed up when adding points after having deleted points.
  • fix wayoints typo in tooltip

merydian added 2 commits May 9, 2025 11:59
we had 10 for testing, was too small, chose 25 as it felt better
Copy link
Collaborator

@koebi koebi left a comment

Choose a reason for hiding this comment

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

LGTM!

@koebi koebi merged commit d2af629 into main May 9, 2025
5 checks passed
@koebi koebi deleted the drag-drop-II branch May 9, 2025 11:29
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.

Make vertex markers on map drag and droppable

4 participants