AnsweredAssumed Answered

Change index of a graphic in a GraphicsLayer

Question asked by processing... on Nov 20, 2015
Latest reply on Nov 8, 2017 by rscheitlin

I have used the draw toolbar to create a collection of graphics on added those graphics to a graphicsLayer. Is there a way to change the order, or index, of the graphics within the layer once the graphics have been added?


For example, can I draw a rectangle, circle and triangle (in that order) and change map.getLayer('myLayer').graphics to reorder these graphics?


Is there an Esri way, or will I need to redraw all of the shapes in the order that I would like them?