Unique Value Class

The following is a list of properties found on the uniqueValueClass object. The uniqueValueClass object contains the symbology for grouped unique values in the renderer.

Referenced by: Unique Value Group

Properties

Property Details
alternateSymbols[] An array of symbol alternatives to a primary symbol. When alternative symbols are present, each symbol has minimum scale and maximum scale at which the symbol should be made visible. For any renderer that support alternate symbols, there is a primary symbol that has minimum and maximum scale defined. When rendering these renderer classes, the renderer should pick only one symbol at a given map scale for a given renderer class. The order of picking a symbol should be starting with primary symbol to check if it falls within the map's scale first before it iterates through alternate symbols in the array starting from 0. The renderer will then pick the first symbol that is visible at current map scale. A symbol is visible if the map scale is greater than symbol's maximum scale and less than or equal to symbol's minimum scale.
description String value used to describe the drawn symbol.
label String value used to label the drawn symbol.
symbol An object used to display the value.
values[] A list of unique values that should be rendered with the same symbol. Each item in the list represents a set of value combinations represented by the given symbol. The inner array must contain only one value if only field1 is specified, two values if field1 and field2 are specified, or three values if field1, field2, and field3 are specified. The inner arrays must not contain more than three values.

Unique Value Class with one value Example

{
  "label": "Interstate",
  "symbol": {
    "type": "esriSLS",
    "color": [
      48,
      255,
      234,
      255
    ],
    "width": 0.375,
    "style": "esriSLSSolid"
  },
  "values": [
    [
      "Interstate"
    ]
  ]
}

Unique Value Class with two values from field1 that should be represented with the same symbol Example

{
  "label": "Local Highway",
  "symbol": {
    "type": "esriSLS",
    "color": [
      239,
      55,
      172,
      255
    ],
    "width": 0.375,
    "style": "esriSLSSolid"
  },
  "values": [
    [
      "Interstate"
    ],
    [
      "State hwy - toll"
    ]
  ]
}

Unique Value Class with two values from field1 and field2 that should be represented with the same symbol Example

{
  "label": "Highways that require fees",
  "symbol": {
    "type": "esriSLS",
    "color": [
      239,
      55,
      172,
      255
    ],
    "width": 0.375,
    "style": "esriSLSSolid"
  },
  "values": [
    [
      "Interstate",
      "Fee required"
    ],
    [
      "State hwy",
      "Fee required"
    ]
  ]
}

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