Skip to content

Conversation

@robertgregg3
Copy link

This PR fixes the bug (#338) where setActiveLeg doesn't zoom to that particular part of the leg.

Clicking on the text next in the red box should zoom the map to that particular leg using setActiveLeg.

The fix included importing and passing setActiveLeg as a prop to the ItineraryBody component in both:

  • narative-itinerary.js
  • default-itinierary.js

109985503-d0069200-7cd2-11eb-94cd-6ef1669e5837

…eg as a prop to ItineraryBody c

Both files were not passing setActiveLeg as a prop so I imported where necessary and passed in the
prop.

fix opentripplanner#338
The previous commit had a line of unused code.

338
Copy link
Collaborator

@binh-dam-ibigroup binh-dam-ibigroup left a comment

Choose a reason for hiding this comment

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

Looks good, and it works.

@binh-dam-ibigroup binh-dam-ibigroup removed their assignment Mar 12, 2021
@landonreed landonreed merged commit 29e2122 into opentripplanner:dev Mar 12, 2021
@landonreed landonreed deleted the fix-setactiveleg-zoom branch March 12, 2021 15:12
@evansiroky evansiroky mentioned this pull request Mar 31, 2021
@github-actions
Copy link
Contributor

🎉 This PR is included in version 3.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants