PointCloud Stretch Renderer

PointCloudStretchRenderer defines the color of each point in a PointCloudLayer based on the value of a numeric attribute. They allow you to easily map continuous color ramps to minimum and maximum data values of one of the layer's numeric attribute fields.

Properties

Property Details
colorModulation
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.
stops An array of color value pairs.
type Specifies the type of renderer used.
Value of this property must be pointCloudStretchRenderer

Example

{
  "renderer": {
    "type": "pointCloudStretchRenderer",
    "pointSizeAlgorithm": {
      "type": "pointCloudSplatAlgorithm",
      "scaleFactor": 1,
      "minSize": 4
    },
    "pointsPerInch": 10,
    "field": "Elevation",
    "stops": [
      {
        "value": 406.59,
        "color": [
          87,
          0,
          252,
          255
        ]
      },
      {
        "value": 468.96999999999997,
        "color": [
          13,
          253,
          255,
          255
        ]
      },
      {
        "value": 531.35,
        "color": [
          242,
          254,
          23,
          255
        ]
      },
      {
        "value": 593.73,
        "color": [
          254,
          21,
          0,
          255
        ]
      }
    ]
  }
}

Feedback on this topic?