A unique value definition for use with a unique value renderer. More...
Import Statement: | import Esri.ArcGISRuntime 100.15 |
Since: | Esri.ArcGISRuntime 100.0 |
Inherits: |
Properties
- alternateSymbols : SymbolListModel
- description : string
- json : jsobject
- label : string
- symbol : Symbol
- unknownJson : jsobject
- unsupportedJson : jsobject
- values : list<variant>
Signals
Methods
Detailed Description
A unique value corresponds to a specific value for an attribute field. A list of unique value instances are maintained in the UniqueValueListModel. When the unique value renderer is used to display a layer, the symbol used for a feature is determined by the value in a selected attribute. When the value matches the unique value, the corresponding symbol and label display.
Unique values contain a value and description, as well as the label and symbol to display for features that contain attribute values that match the unique value.
This QML type supports the following default properties. A default property may be declared inside another declared object without being assigned explicitly to a property.
See also JsonSerializable.
Property Documentation
alternateSymbols : SymbolListModel |
The alternate symbols for the unique value's primary symbol.
Symbols in this list should be of type MultilayerSymbol and must have SymbolReferenceProperties set with valid minimum and maximum scales at which the symbol becomes visible. A renderer will pick only one symbol at a given map scale. If a primary symbol's scale range falls within the map's scale, the primary symbol is used. If not, then symbols in alternate symbols list are iterated through and first symbol matching the current map scale is picked for rendering. A symbol becomes visible if the map scale is less than or equal to the symbol's minimum scale and greater than symbol's maximum scale.
alternateSymbols can only be set once, and should be set at initialization.
This property was introduced in Esri.ArcGISRuntime 100.13.
The JSON representation of this object.
This JSON can be used to instantiate the type instance.
[default] symbol : Symbol |
The symbol used to display this unique value.
Returns the unknown JSON from the source JSON.
See also JsonSerializable.
Returns the unsupported data from the source JSON.
See also JsonSerializable.
Signal Documentation
Emitted when the description property changes.
Note: The corresponding handler is onDescriptionChanged
.
Emitted when the label property changes.
Note: The corresponding handler is onLabelChanged
.
Emitted when the symbol property changes.
Note: The corresponding handler is onSymbolChanged
.
Emitted when the values property changes.
Note: The corresponding handler is onValuesChanged
.
Method Documentation
UniqueValue clone() |
Creates a deep copy of this object.
bool equals(UniqueValue uniqueValue) |
Compares two unique values for equality.
Returns whether this instance and the other uniqueValue are equal.