Hi,
a) For the Print widget how can I set the legend to be used as it is using a legend of the first layer but I want it use the legend of the 3rd layer as I have three layers?
Best Regards.
I'm not 100% sure I understand the question but it sounds like you only want the legend for the third layer to show up in the print output? If so one option would be to set the layerInfos of the legend to only be the layer you want to display before printing.
Yes you have understood the question.
I already added the layerinfos but still the legend on the printout is from two layers
Ok. Can you try specifying a print template and the legendLayers.
Thanks for the quick response.Let me try it out and see.