Opening the application only takes about 10 seconds.
I do load all the layers in stages or consecutively, one after another so as not to request to much of the server at once, and this works pretty well.
The performance issue that I see is not when the application loads, but after the app is rendered and ready for use...when one of the locally cached functional layers/maps is turned on it pegs out the server and in many cases does not return all of the tiles.I've watched the network utilization in Chrome and FF and when the request is made to GET the cached images the only network traffic that is shown is the GET requests for the tiles, 28 requests for 256x256 tiles.
Yes, that is a lot of layers. You're comparing the load time of 42 to layers with that of one when you compare your app to the JS preview from the services directory. It's kind of like saying "Firefox opens immediately when I open it with one tab but if I open it with 42 tabs it takes forever". You're probably overwhelming your server. Do you really need 42 layers in your web app? Can you combine any of your services? What about loading services at run-time instead of when your app starts?
...I have a total of 42 mapLayers.I'm not sure if this qualifies as being a lot of layers in an app, and if it may be part of the problem.Any thoughts out there?
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.