-
Notifications
You must be signed in to change notification settings - Fork 349
Stop context menu #1349
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
Stop context menu #1349
Conversation
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.
Pull request overview
This pull request implements a context menu for transport stops, enabling users to view detailed information about public transport stops on the map. The changes add:
- New translation keys for transport stop types (bus, ferry, train, tram, trolleybus, etc.)
- A new public transport routes style addon for map rendering
- Click handlers for transport stops on the map
- UI components to display transport stop details including routes and action buttons
- Transport stop icons and associated colors
Reviewed changes
Copilot reviewed 16 out of 28 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| map/src/resources/translations/en/web-translation.json | Adds translations for transport stop types and position label |
| map/src/resources/mapStyles/styles.json | Adds publictransportroutes.addon.render.xml to the styles list |
| map/src/resources/mapStyles/styleRulesResult.json | Extensive additions for transport route color definitions across multiple map styles |
| map/src/resources/mapStyles/attributes.json | Restructures to separate regular and public transport attributes |
| map/src/menu/search/search/SearchResults.jsx | Updates imports to use iconPathMap from MapManager |
| map/src/map/util/MapManager.js | Adds iconPathMap and getIconFromMap function (refactored from SearchLayer) |
| map/src/map/layers/TransportStopsLayer.js | Adds click handlers and exports constants for transport stops |
| map/src/map/layers/SearchLayer.js | Removes iconPathMap and getIconFromMap (moved to MapManager) |
| map/src/map/layers/PoiLayer.js | Updates imports to use getIconFromMap from MapManager |
| map/src/infoblock/components/wpt/wptDetails.module.css | Adds CSS styles for transport stop route items |
| map/src/infoblock/components/wpt/transport/TransportStopsRoutes.jsx | New component displaying list of routes at a transport stop |
| map/src/infoblock/components/wpt/transport/TransportStopRouteItem.jsx | New component for individual route display with shield and type |
| map/src/infoblock/components/wpt/actions/TransportStopActionsButtons.jsx | New action buttons for transport stops (favorite, share, directions) |
| map/src/infoblock/components/wpt/WptDetails.jsx | Integrates transport stop handling and display |
| map/src/infoblock/components/favorite/structure/FavoriteName.jsx | Adds support for naming favorites from transport stops |
| map/src/context/AppContext.js | Adds OBJECT_TYPE_STOP constant |
| map/src/assets/icons/*.svg | Adds 11 new transport type icon files |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
No description provided.