WAB - how can I change and apply a legend?

256
1
03-03-2020 06:49 AM
NatashaManzuiga
Occasional Contributor

Dear all,

I have an ArcGISDynamicMapServiceLayer with 10 sublayers.

The sublayers are filtered using setLayerDefinitions ....
Now I would like to refresh the legend of a filtered sublayer applying UniqueValueDefinition, is it possible?

Thanks,


Naty

Tags (1)
0 Kudos
1 Reply
NatashaManzuiga
Occasional Contributor

Hi all, I made it using lyr.setLayerDrawingOptions(optionsArray); 

It works...but how can I refresh the legend in the LayerList widget? I tried with _refresh method....but it doesn't work.

Thanks,

Naty

0 Kudos