Select to view content in your preferred language

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

5251
10
08-28-2013 08:36 AM
hs
by
Emerging Contributor
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.

Thanks,
Harshal

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":"http://servicesbeta2.esri.com/arcgis/rest/services/Census/MapServer","layers":[]}],"exportOptions":{"outputSize":[800,1100],"dpi":96},"layoutOptions":{"customTextElements":[{"titleText":"title"},{"projectName":"NC Geodetic Database"}],"scaleBarOptions":{},"legendOptions":{"operationalLayers":[{"id":"layerActiveMonumentsLayer","subLayerIds":[0]}]}}}
Tags (2)
0 Kudos
10 Replies
TanuHoque
Esri Regular Contributor

yes, it works with the printing service hosted by arcgisonline.

try with this request: http://utility.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%2...

here is the output:

p.png

0 Kudos