AnsweredAssumed Answered

ArcGIS Server 10.1 fails to print the legend with and without sublayerid.

Question asked by harshal_82 on Aug 28, 2013
Latest reply on Feb 6, 2015 by ahoque-esristaff
Hi Folks,

We have encountered an issue with ArcGIS Server 10.1 print service. It fails to print the legend with and without sublayerid as opposed to the bug NIM083432 that reads "PrintService does not draw the legends of mapservice sub-layers when subLayerIds are specified". This does not seem to be a related bug as it fails to draw the legend items without sublayerids too. Any clues what must be missing on this.


Below is the WebMap JSON that doesn't show up legend for layer 0 having Class Breaks Renderer and the other layers with Simple Renderer does show up fine.

{"mapOptions":{"showAttribution":true,"extent":{"xmin":-8851509.581441754,"ymin":4234412.018976383,"xmax":-8642683.620166572,"ymax":4296784.63405711,"spatialReference":{"wkid":102100,"latestWkid":3857}},"spatialReference":{"wkid":102100,"latestWkid":3857},"scale":577790.5542890031},"operationalLayers":[{"id":"layerActiveMonumentsLayer","title":"layerActiveMonumentsLayer","opacity":1,"url":"","layers":[]}],"exportOptions":{"outputSize":[800,1100],"dpi":96},"layoutOptions":{"customTextElements":[{"titleText":"title"},{"projectName":"NC Geodetic Database"}],"scaleBarOptions":{},"legendOptions":{"operationalLayers":[{"id":"layerActiveMonumentsLayer","subLayerIds":[0]}]}}}