getCategory

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

DEPRECATED: Use getCollection() 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 packages/common/src/content.ts:66