AnsweredAssumed Answered

How to get selected FeatureLayer in LayerList?

Question asked by RandyI2 on Feb 9, 2017
Latest reply on Jul 24, 2017 by ilanado

We are using JS 4.2 API.  There must be some way to determine which FeatureLayer was selected to be visible or not without having to write an Action for each item in the LayerList.  Basically, how can I get the FeatureLayer from the LayerList based on action item I chose?  I can get the ListItems, but what attribute tells me it is the one to operate on?

Outcomes