isHostedFeatureServiceMainItem

Function

Determines whether an item represents the main item of a hosted feature service (i.e. the item that was created when the service was published, not an item that referenced the service via url after it was created).

NOTE: This check works for both hosted feature service items created in ArcGIS Online and in ArcGIS Enterprise.

  • isHostedFeatureServiceMainItem(item: IItem) : boolean

Parameters

Parameter Type Default Notes
item Required IItem

item to check

Returns

whether the item passes the hosted feature service check

boolean

Function defined in common/src/content/hostedServiceUtils.ts:30