-
Notifications
You must be signed in to change notification settings - Fork 67
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
Properly update display internals when updating bounds #50
Conversation
Codecov Report
@@ Coverage Diff @@
## master #50 +/- ##
=========================================
- Coverage 0.18% 0.18% -0.01%
=========================================
Files 37 37
Lines 3181 3182 +1
Branches 660 660
=========================================
Hits 6 6
- Misses 2612 2613 +1
Partials 563 563
Continue to review full report at Codecov.
|
@@ -178,6 +178,7 @@ export default class Transitive { | |||
if (!this.display) return | |||
const smWestSouth = sm.forward(llBounds[0]) | |||
const smEastNorth = sm.forward(llBounds[1]) | |||
this.display.reset() |
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.
Probably worth adding a comment here related to this issue. Otherwise, incredible work finding the needle in the haystack!
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.
Incredible work. I still need to test this though. Can you post steps on your setup to test?
Steps to reproduce/verify:
|
🎉 This PR is included in version 0.13.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Some internals in the display class weren't properly getting updated when the map bounds were being changed. This was causing crazy-looking paths being drawn in certain cases.
Fixes opentripplanner/otp-react-redux#159