-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Highlight related members #3140
Conversation
I'm not sure if it's a good idea to class multiple things as For example, in your screenshot above, it looks like 3 things are selected. If the user clicks the trash can on the menu, they'd end up deleting only the relation, leaving the member items around. |
Thanks for suggestions :) I think I should new a class different from This my preliminary thought of this issue. |
@bhousel, we have three different cases:
I suggest to always use a new |
@Sinya Your pull request does support identifying members as a whole, but identifying members individually would still be an issue. How about integrating the related issue #2946 ? |
from @Sinya
from @slhh
Yes, any attempt at relation highlighting should really use a different style than from @slhh
Yeah, I realized this after I wrote my comment above - iD already does style multipolygon members as selected. Deleting a selected multipolygon with the trash can icon does leave the inners around. |
I tried out this approach in my fork. Unfortunately it is not realistic for several reasons:
|
I see two possible solutions:
@bhousel How do you think about downloading missing members. It is clearly too much for relation highlighting alone, but would be benificial for example in the membership editor or for operations like splitting a multipolygon.
Mode.exit() of mode selected does already clear the "selected" and "related" (related parent for vertex navigation) class and can also clear a new "member" class. The code should be moved into modes/selected.js anyway. Otherwise, it doesn't work in case a relation is one of multiple selected elements, because the membership editor wouldn't be called. |
superseded by #5429 |
I notice the issue: indicate route membership with shadow #659 and related issues #2980 . I modify few lines in raw_membership_editor.js.
This make when selecting a relation, all members (including points, ways) are highlighted on the map.