AnsweredAssumed Answered

Loading FeatureLayer with Treeview.OnClick

Question asked by KeitherJ on Jan 28, 2015
Latest reply on Jan 28, 2015 by KeitherJ

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

Attachments

Outcomes