AnsweredAssumed Answered

CSVLayer graphics

Question asked by chuckyboy81070 on Jul 16, 2016
Latest reply on Jul 16, 2016 by chuckyboy81070


Hello all,

 

In my application, I have a CSVLayer that displays fine.  I also have a master clone of it's graphics array.  I filter that array based on user selected options based on the graphics attributes, and then set the CSVLayer.graphics property to that array.

 

csvLayer.graphics = filteredArray;
csvLayer.redraw();

 

However, the CSVLayer continues to show all of the original graphics.  How can I properly filter the graphics of the CSVLayer and have it redraw?

 

edit:  i also tried

 

csvLayer.remove(oldGraphic);
csvLayer.add(newGraphic);
csvLayer.redraw();


 

to no avail. 

Outcomes