Friends
I want to create and display a single FeatureLayer from a different endpoint each time a tree node is clicked on.
The FeatureLayer should include symbology.
I pass in the Item.url with onClick and it works on the first pass.
The next .onClick is a different item.url and it bombs because it cannot create a new FeatureLayer.
TypeError: FeatureLayer is not a constructor
Suggestion on how to structure this.
Thanks
Keith