-
Notifications
You must be signed in to change notification settings - Fork 1k
Add functionality to reopen directions #6446
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
base: master
Are you sure you want to change the base?
Conversation
|
I'm not sure we need to go to a lot of effort to avoid requesting the route again - if the user has closed the results and then requests them again is refetching them wrong? |
|
Just that the button is not spammable, but if re-requesting the route should be the standard, then adding and removing the listener would be better. |
|
I think this is a slight improvement, but doesn't solve the problem. As a user it's not obvious to me that, if I'm looking at a walking route and close the panel, clicking on "walking" again will bring it back. I'm thinking of an alternative:
The rationale is the following:
That's after a cursory test resizing windows myself, so I might be missing some use cases. |
This comment was marked as resolved.
This comment was marked as resolved.
|
Yeah, this kinda "configuration screen" could maybe be merged with an "overview" screen with only 1-3 lines of route instructions from https://c.osm.org/t/138969. |
|
Is it actually of any use to hide the directions while keeping the directions form visible? Hiding both at once sounds like the right thing to do, both on desktop and on mobile. On mobile the directions form beeing held in the burger menu, and then the results covering the burger menu, are issues in themselves. I'll do some mockups. |
|
Thank you! Let's see if we can move this forward. If these elements slide from the right, that'll conflict with the widescreen/desktop view where they live on the left-hand side. Technically it could be different on each case by use of a media query, but adds complexity. On your second screen, the form is showing as well as the route line, but not the list of directions. How do users re-open the directions? Or I guess how do they open them in the first place, as there's no "submit". Having the directions completely obscure the map on mobile... might actually work? Assuming there's a way to hide/show at will. I think I like it better than the current solution where it takes exactly half the screen. |
|
Sorry, I meant complexity in the implementation. It would need a set of rules (and probably perhaps JS) for the wide version (desktop) and another set for the narrow version (mobile). I like the proposed bottom sheet, but it's a whole different UI to implement and maintain in parallel to the desktop one. |
|
Thank you @mjourdan - In terms of the original problem, what I take away from your proposals is to put the search form and the results in the same panel, and hide/show/resize the results with a "pull" interface. Does that make sense? |
|
Yes it does, though that's not all, so I'll try to sum up the changes. Strictly related to search and directions:
As we add two more buttons on the map, the changes above depend on some more changes, mainly to avoid cluttering on mobile (these can perhaps be tracked through a separate issue, but here they are):
|
|
Thank you! This looks good but it has strayed a bit from the original topic. Perhaps we should open a new, separate issue to discuss a possible redesign of all those interface elements? @hlfan, what do you think? As for this specific issue, I do like the pull interface. |




An idea for closing #6442:
Use the selected mode of the mode group to trigger showing the route again after hiding the sidebar.
This does NOT request the route again.
Tested locally.