Hello,
I'm facing a problem with some tiles of the basemap layer on my map when zooming in and out. Sometimes, after panning the map and zooming in and out, more tiles turn transparent, and they remain transparent even when I zoom out. Other tiles load correctly. It seems like the transparent tiles are cached because when I return to the original zoom position where the transparent tiles first appeared, they are still transparent.
This results in me seeing the color of the parent container when I change its background-color.
I am using the ArcGIS JavaScript SDK 4.27, and the issue occurs when I have imagery or satellite tiles raster images as my basemap. Upon inspecting the network calls to https://ibasemaps-api.arcgis.com or https://basemaps-api.arcgis.com, I didn't find any particular errors, and the network calls seem to be working okay. However, the map view appears to be rendering empty tiles for some reason that I can't pin down.
Methods like refresh() and load() for the basemap layers didn’t resolve the issue. The only workaround I found was replacing the complete basemap with a new instance using Basemap.fromId(). However, this approach causes a noticeable flickering of the basemap image, especially when I try to debounce a full basemap replacement when stopping the zoom-out action on the map.
I also attempted to watch for warnings or errors on layer load, but unfortunately, I wasn't able to log anything.
The issue doesn't occur consistently, but it does happen often enough during a normal working session to be a concern.
Is there any way to force a complete network reload of the basemap or, ideally, only the tiles that are not loading?
Thanks for any help or pointers you can provide.
Churles