UniqueValue QML Type

A unique value definition for use with a unique value renderer. More...

Import Statement: import Esri.ArcGISRuntime 100.14
Since: Esri.ArcGISRuntime 100.0
Inherits:

Object

Properties

Signals

Methods

  • UniqueValue clone()
  • bool equals(UniqueValue uniqueValue)

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.

TypeDefault Property
Symbolsymbol

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.


description : string

The description of this unique value.


json : jsobject

The JSON representation of this object.

This JSON can be used to instantiate the type instance.


label : string

The label used to display this unique value.


[default] symbol : Symbol

The symbol used to display this unique value.


unknownJson : jsobject

Returns the unknown JSON from the source JSON.

See also JsonSerializable.


unsupportedJson : jsobject

Returns the unsupported data from the source JSON.

See also JsonSerializable.


values : list<variant>

The attribute value or list of values that comprise this unique value.


Signal Documentation

descriptionChanged()

Emitted when the description property changes.

Note: The corresponding handler is onDescriptionChanged.


labelChanged()

Emitted when the label property changes.

Note: The corresponding handler is onLabelChanged.


symbolChanged()

Emitted when the symbol property changes.

Note: The corresponding handler is onSymbolChanged.


valuesChanged()

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.


Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.