A value/color look up table used for rendering raster data only. This renderer is similar to unique value rendering in regards to its functionality. The rendering is automatically applied when a raster source has colormap information.
Referenced by: Raster Renderers
Properties
| Property | Details |
|---|---|
| colormapInfos[] | An array of colormapInfo objects. |
| type | Specifies the type of renderer used. Valid value of this property rasterColormap |
Raster Color Map Renderer Example
Web map json showing basic colormap rendering to an imagery layer.
{ "type": "rasterColormap", "colormapInfos": [ { "value": 11, "color": [ 73, 109, 163, 255 ], "label": "11" }, { "value": 24, "color": [ 170, 0, 0, 255 ], "label": "24" }, { "value": 71, "color": [ 229, 229, 193, 255 ], "label": "71" }, { "value": 81, "color": [ 221, 216, 61, 255 ], "label": "81" } ]}