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.
Legend | ArcGIS API for JavaScript 4.13
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.
PrintTemplate | ArcGIS API for JavaScript 4.13
Thanks for the quick response.Let me try it out and see.
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.