Modifying the Style with a FeatureStyleModifier

To modify the style of a FeatureLayer or a LineLinkageLayer before it is drawn, use a FeatureStyleModifier. A FeatureStyleModifier is a construct that modifies the appearance of a feature in a table using specified criteria or algorithms.

There are four types of style modifiers:
Table 1.
Modifier Description
Style override A simple FeatureStyleModifier that applies a style to the layer without condition.
Range Applies a style to each feature geometry based on the placement of the feature's numeric data value in a set of numeric ranges. The numeric data value may be the contents of a single numeric valued attribute or the result of evaluating a numeric valued expression. Also contains optional data that defines the constraints used to calculate the bins and styles and an associated legend.
Individual Value Applies a style to a feature geometry based on an equality match against the feature's data value. The data value may be the value of a single attribute or the result of evaluating an expression. Also contains optional data that defines an associated legend.
Dot Density Uses the density of placement of a "dot" to represent a numeric value associated with a feature. The number of dots that display is the ratio of the feature's numeric value to the value that each dot represents (DensityValueExpression/ValuePerDot). The numeric value may be the contents of a single numeric attribute or the result of evaluating a numeric valued expression. Also contains optional data that defines the associated legend.