-
Notifications
You must be signed in to change notification settings - Fork 45
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
stdcm: map shakes when adjusting time #10144
Comments
I can't reproduce the bug. Is it still there? |
This might be obscured by #10240 |
The map is recenter automatically when a user changes :
Question : does the map should be automatically recenter on the "path" when the form's modifications don't impact it ? |
Adding optional parameters on function `computeBBoxViewport` to take care of the map height/width Related to #10240 & #10144 Signed-off-by: Benoit Simard <[email protected]>
I respond to my question : yes we need to recenter it (except for the time, date & tolerance). I can reproduce it with :
Bug explanation :
So when we change the time field, we have one map render with a bbox for the marker, and a second later with pathfinding bbox. The blink effect comes from those 2 renders which can be different. |
This blinking doesn't scream "quality". Ideally, there should be a map state of "computing new path", and a transition between the two displays rather than a sudden move when the new path becomes available. |
I don't think we should recompute the pathfinding when we change an input not related to it (tolerance, date, time) |
fix #10144 Adding a state for pathStepsLocations and only changes its value when there is a deep diff Signed-off-by: Benoit Simard <[email protected]>
Adding optional parameters on function `computeBBoxViewport` to take care of the map height/width Related to #10240 & #10144 Signed-off-by: Benoit Simard <[email protected]>
Adding optional parameters on function `computeBBoxViewport` to take care of the map height/width Related to #10240 & #10144 Signed-off-by: Benoit Simard <[email protected]>
fix #10144 Adding a state for pathStepsLocations and only changes its value when there is a deep diff Signed-off-by: Benoit Simard <[email protected]>
fix #10144 Adding a state for pathStepsLocations and only changes its value when there is a deep diff Signed-off-by: Benoit Simard <[email protected]>
fix #10144 Adding a state for pathStepsLocations and only changes its value when there is a deep diff Signed-off-by: Benoit Simard <[email protected]>
What happened?
When clicking on the time adjusting buttons of the form (among other inputs), the map "shakes" I guess it's reloading.
Enregistrement.de.l.ecran.2024-12-19.172215.mp4
What did you expect to happen?
I expect the map to either stay stable or to not reload at all when editing the time component
How can we reproduce it (as minimally and precisely as possible)?
On which environments the bug occurs?
Recette (SNCF)
On which browser the bug occurs?
Firefox
OSRD version (top right corner
Account
button >Informations
)6580cfe
The text was updated successfully, but these errors were encountered: