Hi,
I try to define the list of layers to be included in a legend in print task. It (marked with red color) has no impact on output printed image. It always only one layer - "address_points" (I tried ["address_points,streets,lakes"] or ["streets,"] or ["lakes"]). I see in debug mode that "map" object contains layerIds ("address_points,streets,lakes").
I tried to use PrintTemplate.layoutOptions.legendLayers
template2.layoutOptions = {
"titleText": title,
"authorText": author,
"copyrightText": "<Copyright info here>",
"legendLayers": ["address_points,streets,lakes"],
"scalebarUnit": "Miles",
};
Please explain how to make it working.
I also noticed the question (see the link below), but cannot understand it.
Javascript API print task legend with dynamically rendered layer
Solved! Go to Solution.
Robert,
Thank you.
I will do more testing. And publish the result.