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

PublicTransport: Select visible routes #681

Merged
merged 8 commits into from
Oct 17, 2024

Conversation

Dlurak
Copy link
Collaborator

@Dlurak Dlurak commented Oct 14, 2024

Description

Here on #405 @amenk wrote a comment:

to eventually let the user toggle routes or group of routes (all regional trains for example) if they want to display multiple routes? (there still could be an "all" button to have the behavior as it is in the moment)

@zbycz suggested to only fetch the geometry when the user actively requests it. This isn't implemented in this pr. It only allows toggling the layers.

After each heading there is a small menu with an option to show/hide the category and one option to only show the specific category and hide all others.

Example links

Köln Messe/Deutz (from the screenshots)
Munic Central Station (from the comment)

Screenshots

image
image
image

Copy link

vercel bot commented Oct 14, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
osmapp ✅ Ready (Inspect) Visit Preview Oct 17, 2024 9:57am

@Dlurak
Copy link
Collaborator Author

Dlurak commented Oct 14, 2024

Personally I'm happy with the code but unsure about the design

@zbycz
Copy link
Owner

zbycz commented Oct 17, 2024

I am ok with the design. Feel free to merge. As this is only about small part of OsmAPP (the public transport part of FeaturePanel), I am not that opinonated about design. 🙂

If you wanted my suggestion though, I would show just an Eye icon instead of the ThreeDot icon, and toggling it would change the icon to crossed eye icon (@mui/icons-material/VisibilityOff). This would be in my opinion a easy to use UI 🙂

@Dlurak Dlurak merged commit 33fcbf2 into zbycz:master Oct 17, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants