Solved! Go to Solution.
Nick,
I am using this https://developers.arcgis.com/javascript/jssamples/widget_legendvisible.html
Tim
Greg,
this works with every type of layer. Shouldn't make a difference if you use feature layers.
Tim
Hi Tim,
Are you saying I can load the "esri/layers/FeatureLayer" module and switch "ArcGISDynamicMapServiceLayer" to "FeatureLayer" when defining the variables for the service? I'm not having luck doing that.