-
-
Notifications
You must be signed in to change notification settings - Fork 29
FeaturePanel: Categorize public transport routes and show them on the map #405
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
I think it would have been better if I've opened a new pr for showing the routes on the map, sorry about that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quite impresive, that looks very good.
I try to be strict on code quality, because otherwise the maintainability of this project would be hard 🙂
I reviewed some more obvious parts, once you address/comment the issues, i will comment more on code structure.
src/components/FeaturePanel/PublicTransport/PublicTransport.tsx
Outdated
Show resolved
Hide resolved
src/components/FeaturePanel/PublicTransport/PublicTransportWrapper.tsx
Outdated
Show resolved
Hide resolved
src/components/FeaturePanel/PublicTransport/PublicTransport.tsx
Outdated
Show resolved
Hide resolved
Related issue: #538 |
@Dlurak Are you going to finish this one? I really like how you showing railroads on the map ❤️ |
Oh of course, sorry I just forgot about it. Probably this evening or tommorow |
Now the code fetches the master relations which can't be directly displayed on the map. I will fix this later |
793663c
to
1c8ac79
Compare
- Changed public transport fetching - Updated id tagging presets
The routes aren't shown on the map in a server rendered environment because |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looks fine. Ready to merge. 👍
src/services/overpassSearch.ts
Outdated
type OverpassGeoJson = Feature & { | ||
osmMeta: { | ||
type: string; | ||
id: number; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this really needed? Feature
already has osmMeta with type:string+id:number. It was changed recently.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I needed it while debugging and it seems like I forgot to remove it
It works for me fine. In SSR there will never be any |
This will be even better once we finish #214, so people can click a (master) route and see its outline as well. Feel free to take it if you want. |
Wow, this is pretty cool. But I am not sure if we should show all the routes by default on the map. Would it make more sense
|
I absolutely love that idea! Designwise I am quite unsure how to do it. @zbycz do you maybe have an idea? |
I think the query should be split in two, first one "quick" would only download the data needed for the PublicTransportDisplay component. There below it could be a toggle (eg https://mui.com/material-ui/react-switch/ + "Show routes on map") which would load the geometry request which can take longer time ~ 10 MB. |
//edit zbycz: add example: https://osmapp.org/node/2470201868
This fixes #399.

Also the routes are know shown on the map, so that #168 would be fixed completely:
Possible improvements (for a follow up?):