PointCloud UniqueValue Renderer

PointCloudUniqueValueRenderer allows you to colorize points in a PointCloudLayer based on an attribute. This is done by using unique colors to represent points with equal attribute values.

Properties

Property Details
colorModulation
colorUniqueValueInfos Unique value infos.
field The name of the field that is used for the renderer.
fieldTransformType A transform that is applied to the field value before evaluating the renderer.
If property is present, must be one of the following values:
  • none
  • lowFourBit
  • highFourBit
  • absoluteValue
  • moduloTen
legendOptions A legend containing one title, which is a string describing the renderer in the legend.
pointSizeAlgorithm
pointsPerInch Number of points to draw per display inch.
type Specifies the type of renderer used.
Value of this property must be pointCloudUniqueValueRenderer

Example

{
  "renderer": {
    "type": "pointCloudUniqueValueRenderer",
    "pointSizeAlgorithm": {
      "type": "pointCloudFixedSizeAlgorithm",
      "useRealWorldSymbolSizes": false,
      "size": 4
    },
    "pointsPerInch": 10.0,
    "field": "CLASS_CODE",
    "colorUniqueValueInfos": [
      {
        "values": [
          "1"
        ],
        "label": "1",
        "description": "Unassigned",
        "color": [
          79,
          112,
          181
        ]
      },
      {
        "values": [
          "2"
        ],
        "label": "2",
        "description": "Ground",
        "color": [
          170,
          183,
          189
        ]
      },
      {
        "values": [
          "3"
        ],
        "label": "3",
        "description": "Low vegetation",
        "color": [
          247,
          255,
          188
        ]
      },
      {
        "values": [
          "4"
        ],
        "label": "4",
        "description": "Medium vegetation",
        "color": [
          241,
          159,
          106
        ]
      },
      {
        "values": [
          "5"
        ],
        "label": "5",
        "description": "High vegetation",
        "color": [
          211,
          26,
          18
        ]
      }
    ]
  }
}

Feedback on this topic?