<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi, <div><br></div><div>I have a scenario in which there are 24 Vector layers. I am adding plenty of features into these layers. </div><div>For example: 16000 feature to every layer (which means 16000 * 24 total features in 24 different layers)</div><div>And once the features are added, I want to switch b/w these layers with certain interval in order to see kind of animation. </div><div>I am using setInterval function of JavaScript and showing/hiding the layer visibility after certain interval using "setVisibility" function of open layers.</div><div>However, I believe that setVisibility function is re-drawing the features every time it is called. I have seen that there is another function called "layer.display"</div><div>which can be used to show and hide the layers. But this doesn't work in my case because I set the layer visibility of all layers to false before adding the features to map.  </div><div><br></div><div><b>For better explanation, pseudo code as follows: </b></div><div><div><br></div><div>1. Request from client - Draw Feature on map</div><div>2. Request sent to server for fetching data ( geometry value and other attributes)</div><div>3. Response received.</div><div>4. Set layer's visibility to false - before creating features so that adding features are bit faster.</div><div>5. Create vector features on client side and add them to corresponding layers. </div><div>6. Once the feature creation is finished, set Visibility of one layer(first one) to true. </div><div>7. Finally, allow user to switch between layer with certain interval by providing a play button.</div><div>8. Pressing on play button start switching between layers. (using setVisibility)</div></div><div><br></div><div><div>The problem in above case is that, setting layer visibility to true and false is bit slow when there are more features. </div><div>Is there any alternative function or approach i can use to implement this behaviour using open layers ?</div></div><div><br></div><div>Best Regards,</div><div>Rajat Arora</div></body></html>