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
| Property | Details |
|---|---|
| colorModulation | Indicates whether modulation should be used to render the point. |
| 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. Valid values:
|
| legendOptions | A legend containing one title, which is a string describing the renderer in the legend. |
| pointSizeAlgorithm | Size algorithms for point cloud performance. |
| pointsPerInch | Number of points to draw per display inch. |
| stops[] | An array of color value pairs. |
| type | Specifies 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
]
}
]
}