I'm trying to add a legend to my web map and it's proving very difficult. I've managed to get a legend to show up, but for some reason, it is split into three sections, and as Arcmap only labels high and low, the middle section is missing.
So, above we can see the properties of one of the raster layers in Arcmap. By default, only the high and low labels are populated, but I manually added a medium label and the TOC looked like the image at bottom left.
After publishing the GP service to my server, the REST services directory (http://myserver:6080/arcgis/rest/services/LFP/lfp01Setup/MapServer/legend) looks like the bottom middle image - the medium value is still there.
So, how do I get my result map to show the full color ramp?
This has been logged as two bugs, see http://support.esri.com for more details:
BUG-000092784 : Running a Geoprocessing service at Rest endpoint and publishing the result as a map service causes the Legend color ramp values to change.