createWithItem

Creates a new FeatureLayer object from a feature layer or feature service portal item. If the portal item is a feature service, the FeatureLayer will be created from the first layer on the service.

Return

a FeatureLayer

Since

200.1.0

Parameters

item

a feature layer Item

See also