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
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": "LineSymbol3D",
    "symbolLayers": [
      {
        "type": "Line",
        "material": {
          "color": [
            48,
            255,
            234
          ]
        },
        "size": 1
      }
    ]
  },
  "values": [
    [
      "Interstate"
    ]
  ]
}

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

{
  "label": "Local Highway",
  "symbol": {
    "type": "LineSymbol3D",
    "symbolLayers": [
      {
        "type": "Line",
        "material": {
          "color": [
            239,
            55,
            172
          ]
        },
        "size": 1
      }
    ]
  },
  "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": "LineSymbol3D",
    "symbolLayers": [
      {
        "type": "Line",
        "material": {
          "color": [
            239,
            55,
            172
          ]
        },
        "size": 1
      }
    ]
  },
  "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.