UniqueValueRenderer class final
A unique value renderer symbolizes geoelements with a distinct symbol for each unique data value in an attribute.
A unique value renderer contains a collection of
UniqueValueRenderer.uniqueValues
. Each UniqueValue has an
UniqueValue.symbol and a collection of UniqueValue.values to define a
value or combination of values.
This is typically used to visualize categories or data types. For example, you can use a unique value renderer to symbolize zoning designations: yellow for "Residential", purple for "Industrial", and green for both "Forests" and "Open land".
Constructors
-
UniqueValueRenderer({List<
String> fieldNames = const [], List<UniqueValue> uniqueValues = const [], String defaultLabel = '', ArcGISSymbol? defaultSymbol}) -
Creates a new unique value renderer object.
factory
Properties
- defaultLabel ↔ String
-
The label used for the default symbol.
getter/setter pair
- defaultSymbol ↔ ArcGISSymbol?
-
The default symbol for values that don't match any of the unique values.
getter/setter pair
-
fieldNames
→ List<
String> -
A collection of the field names/attribute keys that the unique values
apply to.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- rotationExpression ↔ String
-
The expression describing how attributes values are translated into a
rotation to be applied to the GeoElement.
getter/setter pairinherited
- rotationType ↔ RotationType
-
Indicates whether the rotation calculated from the
Renderer.rotationExpression is interpreted as arithmetic or geographic.
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
uniqueValues
→ List<
UniqueValue> -
A collection of unique values used by the renderer to select a symbol.
no setter
Methods
-
clone(
) → Renderer -
Clones the Renderer.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
symbolForFeature(
{required Feature feature, bool applyAttributeOverrides = false}) → ArcGISSymbol? -
Returns the symbol that is used to visualize the given feature with
override attributes from the renderer.
inherited
-
symbolForGraphic(
{required Graphic graphic, bool applyAttributeOverrides = false}) → ArcGISSymbol? -
Returns the symbol that is used to visualize the given graphic with
override attributes from the renderer.
inherited
-
toJson(
) → Map< String, dynamic> -
Returns a JSON representation of this Object in the data type used by jsonDecode.
inherited
-
toJsonString(
) → String -
Returns a JSON representation of this Object as a String.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited