createWithItemAndLayerId

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

a FeatureLayer

Since

200.1.0

Parameters

item

a feature layer Item

layerId

the id of the layer in the item to create the FeatureLayer with

See also