Skip to content

Follow operation should prefer the focused way #8750

Description

@1ec5

The “follow” operation added in #8671 stops when encountering a node that’s shared among multiple features. iD already keeps track of the “focused” way for the purpose of reliably navigating back and forth among its vertices using the keyboard. It would be natural to extend this capability to the follow operation, so that the user doesn’t have to think as much about other connecting ways after choosing a way to follow. Invoking the follow operation would focus the way, and subsequent follow operations would choose that way from among the candidate ways.

function parentWayIdForVertexNavigation() {
// `_focusedParentWayId` is used when we visit a vertex with multiple
// parents, and we want to remember which parent line we started on.
var _focusedParentWayId;

Activity

  1. added
    enhancement
    on Oct 13, 2021
  2. added
    new contributor opportunity (no AI)
    on Nov 2, 2021
  3. Pho3b commented on Jan 23, 2022

    @Pho3b

    Hi and nice to meet you @mbrzakovic @1ec5 , i would like to try and work on this issue if possible.

  4. thyrhone commented on Mar 2, 2022

    @thyrhone

    is it still possible to work on this?

  5. 1ec5 commented on Mar 2, 2022

    @1ec5
    CollaboratorAuthor

    Thanks for your interest! There’s a fix available in #8978; perhaps you could help review it?

  6. sherryboxall commented on Mar 4, 2022

    @sherryboxall

    Hello @mbrzakovic @1ec5 ,

    I would like to help work on this issue if possible. Thank you!

  7. Dustpie commented on Apr 28, 2022

    @Dustpie

    Can I still help on this issue if possible? Thank you!

  8. Gua00va commented on Feb 15, 2023

    @Gua00va

    Hey!! I want to work on this issue. I'm new here so I'm really excited to start contributing. Please assign it to me.

  9. k-yle commented on Feb 16, 2023

    @k-yle
    Collaborator

    This issue has already been fixed in two conflicting PRs: #8978 and #9340

    I'm guessing the suprising interest in this issue is because it has a "good first issue" label. @tyrasd it might be good to add this label to some other issues like #9452, #9217, #9448, #9441, #9440, #9312, #9402, #9400, ...

  10. 1ec5 commented on Feb 16, 2023

    @1ec5
    CollaboratorAuthor

    Right, GitHub has a feature that suggests issues labeled as https://github.com/openstreetmap/iD/labels/good%20first%20issue to users, but it doesn’t consider whether there are outstanding PRs already linked to them.

  11. removed
    new contributor opportunity (no AI)
    on Feb 16, 2023
  12. DujaOSM commented on Aug 23, 2024

    @DujaOSM

    Objection, your honor!
    Implementing this will break workflow in a very common use case where we fill up the space with landuse polygons. Let me illustrate:
    DrawFarmland
    I'm drawing a farmland here, following the existing forest boundary. When I encounter a tripoint with a meadow, as in the screenshot, I want to continue following the meadow. Therefore, I want iD to stop there and prompt me where to continue. Implementing this change would mean that it would just continue following the forest (something I rarely if ever do), so it will make my workflow very error-prone.

  13. 1ec5 commented on Oct 15, 2024

    @1ec5
    CollaboratorAuthor

    The current behavior makes the follow operation useless in some common situations. For example, I happen to know that there’s a fence surrounding this quarry, which is thoroughly connected to surrounding landuse areas. I can’t use the follow operation at all, because every single node is connected to more than one area. Yet it doesn’t even matter which area it follows:

    Drawing a line along the boundary between a quarry landuse area and a woods landuse area.

    I take it you’re jamming the F key until it pauses on something. I do that a lot when editing OpenHistoricalMap, in order to duplicate a way and ensure that it’s connected to the original way. It’s a critical workflow for that project, but it’s also hampered by this issue. What if we initially pause but continue along the focused way after the second keystroke? Or what if we detect that the F key is on repeat and pause for a second or two, giving you a chance to ease up on the F key?

    #10155 also had a good idea about considering the angle of each candidate way.

  14. DujaOSM commented on Oct 16, 2024

    @DujaOSM

    But in the fence use case, it's just the software being lame: yeah, the current point connects multiple areas, but they share both the previous and next node, so there's no ambiguity. The algorithm could be amended to work in that case as well, rather than changing the whole workflow.

    (And, btw, related #9734 could be tackled along the way, seems simple enough).

  15. added theissue type on Jul 14, 2025
  16. added
    operation
    on Oct 22, 2025
  17. matkoniecz commented on Feb 26, 2026

    @matkoniecz
    Collaborator

    @DujaOSM

    Implementing this change would mean that it would just continue following the forest (something I rarely if ever do), so it will make my workflow very error-prone.

    this seems entirely solvable by looking at screen and stopping to hold f or stopping to repeatedly press f when you reach location where you want to branch off? Or, in the worst case - undoing few operations?

  18. DujaOSM commented on Feb 26, 2026

    @DujaOSM

    @matkoniecz
    | Invoking the follow operation would focus the way, and subsequent follow operations would choose that way from among the candidate ways.

    this seems entirely solvable (as it is currently working) by looking at screen, and when the operation gets stuck, click on the next node you want to follow. [See what I did here? :) ]

    I map a lot of landcover, and I encounter this choice about two dozen times a day. The proposed change would badly hamper my workflow, forcing me to pay a lot more attention and backspace every now and then.

    Seriously, as a middle ground, I think that the use case from Minh's last post, where the next point is the part of both ways, can be uncontroversially solved, and let that be the end of it.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementoperation

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions