FeatureLayer.withFeatureLayerItem constructor

FeatureLayer.withFeatureLayerItem(
  1. Item item
)

Creates a new feature layer object from a feature layer, map service, or feature service portal item.

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

Parameters:

  • item — A feature layer or feature service PortalItem.