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.

Referenced by: PointCloud Renderers

Properties

PropertyDetails
colorModulationIndicates whether modulation should be used to render the point.
fieldThe name of the field that is used for the renderer.
fieldTransformTypeA transform that is applied to the field value before evaluating the renderer.
Valid values:
  • absoluteValue
  • highFourBit
  • lowFourBit
  • moduloTen
  • none
legendOptionsA legend containing one title, which is a string describing the renderer in the legend.
pointSizeAlgorithmSize algorithms for point cloud performance.
pointsPerInchNumber of points to draw per display inch.
stops[]An array of color value pairs.
typeSpecifies the type of renderer used.
Valid value of this property pointCloudStretchRenderer

pointCloudStretchRenderer Example

{
"type": "pointCloudStretchRenderer",
"pointSizeAlgorithm": {
"type": "pointCloudSplatAlgorithm",
"scaleFactor": 1
},
"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
]
}
]
}