-
Notifications
You must be signed in to change notification settings - Fork 502
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
[Android] Adding symbol layer fails #968
Comments
so you was myLocationEnabled true at first but later got set to false? And if you add a new layer after this change you get the error? Or did you change the permissions on the android side? |
What seems to happen now is even if I start with location permission given and set |
@AAverin without changing either? |
can you try setting myLocationRenderMode to MyLocationRenderMode.GPS? |
|
I am setting my geojson and symbol layers in |
no this is fine |
also try |
commit b29092 is fine |
commit 19b541 already gives the exception |
yeah in b29092 the locationComponent style does not get updated. So it gets hidden under new layers. Calling applyStyle on locationComponent causes the issue. |
@Chaoba any ideas? |
might have found the issue - @AAverin can you try https://github.com/flutter-mapbox-gl/maps/tree/fix-Location-permission-issues |
@felix-ht same exception |
Just in case it's any different
|
@AAverin That logs the input into the applyStyle function? And post the results here. I cannot reproduce the error. |
|
That's the issue the location component tries to place the layer above itself - which fails with the error you get
That also exactly what i tried to fix in the branch I sent you - should have worked |
Also am I right in the assumption that the layer you added right before the crash was added with below layer? If that's the case it would explain why the topmost layer is the mapbox one. With this i should be able to reproduce it tomorrow. |
no, the layer, that results in a crash, is being added with
|
yeah thats what i meant - worded it poorly - fix is ready and i will create the pr soon |
Adding symbol layer fails with exception when location was enabled.
Map is configured with:
The text was updated successfully, but these errors were encountered: