Using the ESRI JSAPI 3.18 and ArcGIS Server 10.4.1, I have an image service of crops that I have applied a Colormap Raster Function to. It displays only a single value from the raster, 122 which stands for "Pasture and Forages". Is there any way I can define this Colormap so that it will indicate to the Legend dijit that the text that should be displayed for that Colormap definition is "Pasture and Forages"?
I am attaching an HTML example page of what I am seeing as it is working for me now. This HTML will display the image and it's legend with the Colormap Raster Function applied. If you'd like to view the data without the Colormap, simply comment out the setRenderingRule line.
Is this even possible?