ThinkGeo.com    |     Documentation    |     Premium Support

Efficiency with many overlays

Greetings,


I'm working on a project which currently has ~25 different overlays.  I noticed, however, that when I have this many overlays that the performance of the map is really poor.  Specifically, panning is not smooth at all, it takes much longer to redraw on pans, and the zoom box is very unresponsive.  I ran a few tests.  In one of them I had my 25 overlays and added only a single layer to one of them.  I then ran the same test where I only had 1 overlay and added that same file.  In the version where I only had 1 overlay, the performance was MUCH better than the one with many overlays despite displaying the exact same data.


My question is what is the maximum number of overlays one can have while still having an efficient application?  Is there something else I can do to make the application more efficient?  


Any help would be appreciated.  Thank you for your time.


 


.Ryan.



Ryan,


I think this is a difficult stuff to make sure. In such an App with 25 overlays, we have a couple of things not so clear:


1)      Can you let me know how many layers will be used in the whole App? And the maximum number of layers active for ONLY one ZoomLevel?  Did we use any other kinds of Layers except the ShapeFileFeatureLayer? What is the total size of the data?
 
2)      Why we have to have so many overlays? Why we do not group them into as few Overlays as possible?  Can we try to reduce the overlay number and group some layers into one overlay? I think this is critical to this problem.
 
We did an App with more than 100 layers but just use 2 overlays. And the performance seems not so bad.
 
3)      About the maximum number of Overlays, I do not think there is some very strict limitation on this. But the things is that for each overlay, we will have one cache for it, so for each ReDraw(for example, Minimize and then Maximize), it will draw as many bitmaps as Overlay numbers to Screen.
 
Typically it should be very fast, but with the increase of Overlay number, the performance will be hurt somehow.
 
Any all, this is a more comprehensive problem, we will try to get as much information as we can  to see if any thing we can foresee to let you know.
 
Thanks.
 
Yale


Thanks Yale for your response.  I was able to recreate this issue having 25 overlays and a single ShapeFileFeatureLayer in one of them… the other 24 were empty (just for testing purposes).  I will reorganize my data into fewer overlays in order to get the better performance.


Thanks for your help.


.Ryan.

Ryan, 
  
 Thanks for your post! 
  
 We will try to see this problem as soon as possible as you said. 
  
 Any more questions just let me know. 
  
 Thanks. 
  
 Yale