getCategory

Function
import { getCategory } from "@esri/hub-common";
//
getCategory('Feature Layer')
> 'dataset'

DEPRECATED: Use getFamily() instead returns the Hub category for a given item type

  • getCategory(itemType: string) : string

Parameters

Parameter Type Default Notes
itemType Optional string ""

The ArcGIS item type.

Returns

the category of a given item type.

string

Function defined in common/src/content/contentUtils.ts:39