mapbox-maps-android
mapbox-maps-android copied to clipboard
Glitches after changing minZoom of layers dynamically.
Environment
- Android OS version: Irrelevant
- Devices affected: Irrelevant
- Maps SDK Version: 10.2.0
Observed behavior and steps to reproduce
For my use-case I have to dynamically change the minZoom fields of certain layers.
- I have a layer that has a zoom range from
21.0 - 22.0initially and the camera currently sits at10.0(in the video i used thewater layersfor testing purposes. - I change the zoom range to
0.0 - 22.0for that layer. (in the video, press on the button) - I expect the tiles to load after the change, but what is observed is that the tiles seem to not load at all for certain zoom levels and glitch on various other zoom levels.
https://user-images.githubusercontent.com/21218132/152193659-c045bb16-6058-4894-9e20-cd6079a8ee3d.mp4
Expected behavior
If a change in minZoom of a layer results in that layer now being visible, the layer should be displayed.
Notes / preliminary analysis
Additional links and references
@florianPOLARSTEPS thank you for reporting and for providing your sample project. I was able to reproduce this behavior and will investigate the root cause.
@ZiZasaurus Any update on this one? It still happens (seems to have gotten worse) with the latest 10.x releases of the SDK.