-
Notifications
You must be signed in to change notification settings - Fork 509
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
Bug when updating lines with a new color #448
Comments
This happens because https://github.com/tobrun/flutter-mapbox-gl/blob/9ee6d315b6154ad507cad6e20d7efb437feb8889/android/src/main/java/com/mapbox/mapboxgl/LineController.java#L61 |
I have converted hex color string to rgba(r,g,b,a) one and it worked in 0.13.0 and in the last version of the library (0.14.0) it doesn't work anymore, with |
@lomza I don't see any changes related to how colors work. |
You're right, @AAverin , for Android I still need to provide rgba color string, doesn't matter if 0.13.0 or 0.14.0 version. They only changed FYI, for iOS hex is enough. If somebody seeks a solution, this is my working code:
I use |
@lomza Where is this change exactly? |
I though that this merge was done maplibre/flutter-maplibre-gl#15 , but seems it didn't. |
@m0nac0 Should we bring that fix into main repo? |
@vberthet Would you like to bring your fix over to this repo? (Should be straightforward by cherry-picking) |
…upport hex color strings for lines Solves flutter-mapbox-gl#762 by interpreting and setting geometry on the line, allowing to programmatically move lines
* Solves #448 by using Color.parseColor to correctly support hex color strings for lines Solves #762 by interpreting and setting geometry on the line, allowing to programmatically move lines * Remove unused import * Unify geometry handling for line add, addAll and update * Unify how geometry is handled for line add, addAll and update
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hi there.
I believe this is a bug. When I create a line with addLine on my first state, everything works fine, but after I try to edit it with updateLine and try to give it a new color or even the same color, I get the following error and the map stops drawing lines:
The text was updated successfully, but these errors were encountered: