We've been building a web app in experience builder. The first page is a map with a sidebar with the map layers widget. When previewing the app, the map loads okay (5-10 seconds), but the map layers widget can take up to a minute to load. I've tried to optimise it by switching off all the layers, and saving the web map using the new map viewer. However, it hasn't sped up the load time. Has anyone found a way to speed up the load time? There are approximately 100 layers in the map but they are all switched off. See the attached image. Thank you, Heather.
I found a possible reason. There are many queries of returnCountOnly that may stuck the Map Layers widget in your app. @HeatherBell @TonghuiMing