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.