Legend layer headings not displayed in print task

1155
0
02-20-2017 11:52 AM
ShruthiSrinivasan1
New Contributor III

When the legendLayers is populated with the layerId, the legend is displayed correctly in the print output, but the layer headings/title is not displayed in the legend.

var test = new LegendLayer();    
test.layerId = "biomass";    //biomass is the id of a dynamic map service layer (type: raster layer) added to the map

template.layoutOptions = {
   "legendLayers": [test],
};

I would appreciate any solutions for this issue. Thanks.

0 Kudos
0 Replies