Map feature layer redering priority

Discussion created by manojrajteli on Feb 7, 2013
Latest reply on Feb 7, 2013 by manojrajteli
I am displaying polygon,line and point feature layer on button click event and adding layer in order of polygon at bottom,line layer on top of polygon and point on line layer.In certain cases layers are rendered fine as we add but in some cases as data increases(Response Time) in one of the layer the polygon layer is rendered on top of the point and line layer and these layers get hidden.We have already used reordering code but its not much of use. Is there any methods to control the rendering of layer or move layers one above the other.I am using arcgis server 10.1,feature service and arcgis javascript api 3.1 .