-
Notifications
You must be signed in to change notification settings - Fork 697
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
Conditional SymbolLayer overlaps rather than replaces #1335
Comments
Please see Also, please refrain from using Github for questions. Github is intended for posting bugs, issues and feature requests. Use the gitter channel (https://gitter.im/react-native-mapbox-gl/Lobby) or stack overflow for code questions. |
Thank you for the response; however, I'm not sure that it implies an obvious solution. It seems like From my understanding, it does seem like this could be a bug; apologies for the location of the comment if it in fact is not a bug. It looks like when the state of |
Sorry, that was a misunderstanding on my side. Have you tried defining non-identical IDs for the layers? If this doesn't work, can you try keeping the same It seems like the diffing algo may have issues interpreting the proper layer changes when two components with the same ID is replaced. |
No worries, thanks for the help. I've tried both of these as follows:
and
The behavior unfortunately remains the same. |
Ok, thanks for testing. Can you try passing a |
Do you mean something like this?
This still doesn't change the result. Same with an empty string. However, it's interesting that it never complains about the null value. It looks like if I were to make the textField always null, it would not be acceptable. This issue does not arise when null is only conditional as in the example above. |
@kristfal @isabelle-butterfield did you find a solution ? |
My ShapeSource has a FillLayer and a SymbolLayer which changes depending on state. The initial rendering is correct; however, once I toggle state, the new SymbolLayer overlaps the old one rather than replacing it. Below is sample code as well as screenshots to help describe the issue.
BEFORE BUTTON PRESS:
AFTER BUTTON PRESS:
The text was updated successfully, but these errors were encountered: