-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Text translate is throwing an error #2762
Comments
This is breaking Mapbox Studio in production right now. If user attempts to change text-translate, the map crashes. |
I'm unable to reproduce the issue. I added this test case to the test suite and it passes as expected. Can you provide more detail about how to reproduce this? |
Never mind, I can reproduce it if I set an explicit starting value for |
This is a latent bug in transition calculation that existed prior to #2561. Prior to #2561, a transition between
After #2561, it causes a runtime exception instead. Both behaviors are incorrect; the intended behavior is a smooth transition between the old and new translate values. The bug arises due to an incorrect condition on when to apply the transition calculations intended for "cross-fading" properties. (Strict typing would have caught this bug.) |
@jfirebaugh sorry for missing your comment above. |
mapbox-gl-js version: 0.20.0
Steps to Trigger Behavior
Expected Behavior
The text should move
Actual Behavior
The text was updated successfully, but these errors were encountered: