mapbox-maps-android icon indicating copy to clipboard operation
mapbox-maps-android copied to clipboard

Glitches after changing minZoom of layers dynamically.

Open florianPOLARSTEPS opened this issue 3 years ago • 2 comments

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.0 initially and the camera currently sits at 10.0 (in the video i used the water layers for testing purposes.
  • I change the zoom range to 0.0 - 22.0 for 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

Github sample application

florianPOLARSTEPS avatar Feb 02 '22 16:02 florianPOLARSTEPS

@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 avatar Feb 03 '22 17:02 ZiZasaurus

@ZiZasaurus Any update on this one? It still happens (seems to have gotten worse) with the latest 10.x releases of the SDK.

florianPOLARSTEPS avatar May 24 '24 13:05 florianPOLARSTEPS