ArcGIS Runtime SDK for iOS
100.15
|
Each unique value that is symbolized differently by a unique value renderer.
Instances of this class represent a unique value of matching attributes that must be symbolized by a unique value renderer.
Instance Methods | |
(instancetype) | - initWithDescription:label:symbol:values: |
(instancetype) | - initWithDescription:label:symbol:values:alternateSymbols: |
(BOOL) | - isEqualToUniqueValue: |
(nullable id) | - toJSON: |
Class Methods | |
(nullable id< AGSJSONSerializable >) | + fromJSON:error: |
(instancetype) | + uniqueValue |
(instancetype) | + uniqueValueWithDescription:label:symbol:values: |
(instancetype) | + uniqueValueWithDescription:label:symbol:values:alternateSymbols: |
Properties | |
NSArray< AGSSymbol * > * | alternateSymbols |
NSString * | label |
AGSSymbol * | symbol |
NSDictionary< NSString *, id > * | unknownJSON |
NSDictionary< NSString *, id > * | unsupportedJSON |
NSString * | valueDescription |
NSArray< id > * | values |
|
staticrequiredinherited |
Initializes and returns an object from its JSON representation.
JSONObject | NSDictionary or NSArray containing the JSON. |
error | encountered during the operation, if any. |
- (instancetype) initWithDescription: | (NSString *) | description | |
label: | (NSString *) | label | |
symbol: | (AGSSymbol *) | symbol | |
values: | (NSArray< id > *) | values | |
Initialize a new unique value (or unique combination of values) and a symbol used to display elements with this value in an AGSUniqueValueRenderer
.
description | A description of the unique value. "Parcels zoned for residential use", for example. |
label | A label for the unique value. "Residential", for example. |
symbol | A symbol used to represent elements with this unique value. |
values | An NSArray containing id types that define a unique value or unique combination of values. |
- (instancetype) initWithDescription: | (NSString *) | description | |
label: | (NSString *) | label | |
symbol: | (nullable AGSSymbol *) | symbol | |
values: | (NSArray< id > *) | values | |
alternateSymbols: | (NSArray< AGSSymbol * > *) | alternateSymbols | |
Creates a new unique value (or unique combination of values) object with alternate symbols.
A unique value can have alternate symbols to the primary symbol. Alternate symbols allow you to tailor the visualization of unique value at different scales by selecting different symbol for different scales. Alternate symbols are supported only when the unique value's primary symbol and alternate symbols are of type AGSMultilayerSymbol
and have AGSSymbolReferenceProperties
defining valid min and max scales at which the symbol becomes visible.
The renderer will pick only one symbol at a given map scale. If the primary symbol's scale range falls within the map's scale, the primary symbol is used. If not, then the first alternate symbol matching the current map scale is used for rendering. A symbol becomes visible if the map scale is less than or equal to symbol's minimum scale and greater than symbol's maximum scale. For more information on Scale-based symbol classes and alternate symbols see the following documentation: https://pro.arcgis.com/en/pro-app/latest/help/mapping/layer-properties/scale-based-symbol-classes.htm.
description | A description of the unique value. For example, "Parcels zoned for residential use". |
label | A label for the unique value. For example, "Residential". |
symbol | A symbol used to represent elements with this unique value. |
values | An array containing objects that define a unique value or unique combination of values. |
alternateSymbols | The alternate symbols for the unique value. Only AGSMultilayerSymbol are supported as alternates. |
- (BOOL) isEqualToUniqueValue: | (AGSUniqueValue *) | other |
Compares this unique value to another for equality.
other | unique value to compare this one to |
|
requiredinherited |
Returns JSON representation for this object.
error | encountered during the operation, if any. |
NSDictionary
or NSArray
containing the JSON. Reimplemented in AGSPortalItem.
+ (instancetype) uniqueValue |
Initialize a unique value.
+ (instancetype) uniqueValueWithDescription: | (NSString *) | description | |
label: | (NSString *) | label | |
symbol: | (AGSSymbol *) | symbol | |
values: | (NSArray< id > *) | values | |
Initialize a new unique value (or unique combination of values) and a symbol used to display elements with this value in an AGSUniqueValueRenderer
.
description | A description of the unique value. "Parcels zoned for residential use", for example. |
label | A label for the unique value. "Residential", for example. |
symbol | A symbol used to represent elements with this unique value. |
values | An NSArray containing id types that define a unique value or unique combination of values. |
+ (instancetype) uniqueValueWithDescription: | (NSString *) | description | |
label: | (NSString *) | label | |
symbol: | (nullable AGSSymbol *) | symbol | |
values: | (NSArray< id > *) | values | |
alternateSymbols: | (NSArray< AGSSymbol * > *) | alternateSymbols | |
Creates a new unique value (or unique combination of values) object with alternate symbols.
A unique value can have alternate symbols to the primary symbol. Alternate symbols allow you to tailor the visualization of unique value at different scales by selecting different symbol for different scales.Alternate symbols are supported only when the unique value's primary symbol and alternate symbols are of type AGSMultilayerSymbol
and have AGSSymbolReferenceProperties
defining valid min and max scales at which the symbol becomes visible.
The renderer will pick only one symbol at a given map scale. If the primary symbol's scale range falls within the map's scale, the primary symbol is used. If not, then the first alternate symbol matching the current map scale is used for rendering. A symbol becomes visible if the map scale is less than or equal to symbol's minimum scale and greater than symbol's maximum scale. For more information on Scale-based symbol classes and alternate symbols see the following documentation: https://pro.arcgis.com/en/pro-app/latest/help/mapping/layer-properties/scale-based-symbol-classes.htm
description | A description of the unique value. "Parcels zoned for residential use", for example. |
label | A label for the unique value. "Residential", for example. |
symbol | A symbol used to represent elements with this unique value. |
values | An array containing objects that define a unique value or unique combination of values. |
alternateSymbols | The alternate symbols for the unique value. Only AGSMultilayerSymbol are supported as alternates. |
|
readwritenonatomiccopy |
The alternate symbols for the unique value's primary symbol. Symbols in this array should be of type AGSMultilayerSymbol
and must have AGSSymbolReferenceProperties
set with valid minimum and maximum scale at which symbol becomes visible. The renderer will pick only one symbol at a given map scale. If the primary symbol's scale range falls within the map's scale, the primary symbol is used. If not, then the first alternate symbol matching the current map scale is used for rendering. A symbol becomes visible if the map scale is less than or equal to symbol's minimum scale and greater than symbol's maximum scale.
|
readwritenonatomiccopy |
A label for the unique value. "Residential", for example.
|
readwritenonatomicstrong |
A symbol used to represent elements with this unique value.
|
readrequirednonatomiccopyinherited |
A dictionary of values that was in the source JSON but was unparsed by API.
NSDictionary
containing the unknown JSON.
|
readnonatomiccopyinherited |
A dictionary of values that are supported by the REST API, but not exposed through the SDK API.
NSDictionary
containing the unsupported JSON.
|
readwritenonatomiccopy |
A description of the unique value. "Parcels zoned for residential use", for example.
|
readwritenonatomiccopy |
An NSArray
containing id
types that define a unique value or unique combination of values.