You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{setDefaultOptions,searchGroupItems,searchGroupItemsByIds,loadGroupCategorySchema,}from'@vannizhang/arcgis-rest-helper';// set the default Group ID that will be used for searching items// make sure this is called before calling searchGroupItemssetDefaultOptions({groupId: 'abc12345',});// load the group category schema if will be using categories as filtersawaitloadGroupCategorySchema();// search items from dafault group constres=awaitsearchGroupItems({searchTerm: 'river',contentType: 'layers',sortField: 'title',mainCategory: 'environment'subCategories: ['Fresh Water','Land Cover']})// or search items from a specific groupconstres=awaitsearchGroupItems({start: 1,num: 10groupId: 'ef456'})
import{searchGroupItemsByIds,setDefaultOptions,}from'@vannizhang/arcgis-rest-helper';// set the default Group ID that will be used for searching items// make sure this is called before calling searchGroupItemssetDefaultOptions({groupId: 'abc12345',});// then search items by list of item idsconstitems=awaitsearchGroupItemsByIds({itemIds: ['ff0facb43ce643a2940f77029d257cf7','f98b82823fcc4291b7d03bbd0401f816','ee69e67f014c42ed84a5190ee990e5cd']})