create With Item And Layer Id
Creates a new FeatureLayer object from a feature service portal item. The feature layer will fail to load if an invalid portal item is passed in.
Return
Since
200.1.0
Parameters
item
a feature layer Item
layer Id
the id of the layer in the item to create the FeatureLayer with