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

feat: planned route map #434

Merged
merged 18 commits into from
Mar 2, 2024
Merged

Conversation

itai-rozen
Copy link
Contributor

@itai-rozen itai-rozen commented Jan 24, 2024

Description

after choosing a route & time of route, line of route is displayed on map
2 polylines are loaded:

  • actual route positions based on vehicle locations
  • planned route stops based on GTFS API

also, added a map index showing which marker belongs to which route

screenshots

‏‏לכידה

@NoamGaash
Copy link
Member

Hi, welcome to our repo!
Thanks for the contribution. Just let me make sure I understand - it's not about showing the actual / planned ride, it's just about adding the marker. Am I missing something?
By the way, please run npm run lint:fix to fix all linting issues

@@ -41,17 +48,17 @@ export function MapWithLocationsAndPath({
onClick={toggleExpanded}
icon={<ExpandAltOutlined />}
/>
<MapContainer center={position.loc} zoom={8} scrollWheelZoom={true}>
<MapContainer center={position.loc} zoom={13} scrollWheelZoom={true}>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can be reverted

@itai-rozen
Copy link
Contributor Author

itai-rozen commented Jan 28, 2024 via email

@NoamGaash
Copy link
Member

Actually, this map doesn't show a planned ride - it's showing an actual ride that actually happened. The issue was about adding additional line/map showing the planning

@itai-rozen
Copy link
Contributor Author

itai-rozen commented Jan 29, 2024 via email

@NoamGaash
Copy link
Member

hi, could you please clarify which issue you're solving, and attach an updated screenshot? thanks

@itai-rozen
Copy link
Contributor Author

Description

after choosing a route & time of route, line of route is displayed on map 2 polylines are loaded:

  • actual route positions based on vehicle locations
  • planned route stops based on GTFS API

also, added a map index showing which marker belongs to which route

screenshots

‏‏לכידה

@NoamGaash NoamGaash changed the title Feat planned route map feat: planned route map Feb 12, 2024
Copy link
Member

@NoamGaash NoamGaash left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's a great contribution, thanks!

src/pages/Map.scss Outdated Show resolved Hide resolved
src/pages/Map.scss Show resolved Hide resolved
src/pages/Map.scss Show resolved Hide resolved
src/pages/Map.scss Show resolved Hide resolved
@NoamGaash NoamGaash merged commit b6994a6 into hasadna:main Mar 2, 2024
17 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.

None yet

2 participants