getCollection

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

Get the Hub collection for a given item type

  • getCollection(itemType: string) : string

Parameters

Parameter Type Default Notes
itemType Optional string ""

The ArcGIS item type.

Returns

the Hub collection of a given item type.

string

Function defined in packages/common/src/content.ts:171