Is there a way to customize ArcGIS print service so that it will not print the layer id and the string that is given in ClassBreakRenderer
in the legend.
var layer = new FeatuerLayer(url, {
id: "featureLayerId",
opacity: 0.5
});
var renderer = new ClassBreakRenderer(null, "columnName");
var legendLayer = new LegendLayer();
lengendLayer.layerId = "featureLayerId";
Best Answer
Intercept the Print request by using the esri/request setRequestPreCallback method. Parse the WebMap String to convert it to JSON. Change your layer id's and stringify back.