AnsweredAssumed Answered

Changing color for certain features within a feature layer

Question asked by Michael_Banks_LearnArcGIS on Jun 26, 2020
Latest reply on Jun 26, 2020 by rscheitlin

I am trying to change the color of certain features within a feature layer. Here is my code:

 

 

 

The if statement isn't too important, but when that condition is true, I want those features to have a certain color, and when the condition is not true, I want those features to be black. What seems to be happening, is the features only get their symbol / color from the layer (response.features[i].layer.renderer.symbol).

Am I doing something wrong here? Any help or guidance would be much appreciated.

Outcomes