getItemThumbnailUrl

Function

Get the fully qualified URL for an item's thumbnail

Parameters

Parameter Type Default Notes
item Required IItem

w/ id, thumbnail, and access

portalUrlOrObject Optional string | IPortal | IHubRequestOptions | IRequestOptions

a portal base or API URL, a portal object, or request options containing either of those

optionsOrToken Optional IThumbnailOptions | string

options including width and/or token for the current user's session; will only be appended as a query parameter if the item's access is not public

Returns

URL to the item's thumbnail, defaults to https://www.arcgis.com/sharing/rest/content/items/{item.id}/info/{item.thumbnail}. Returns null if the item does not have a thumbnail assigned.

string | null

Function defined in common/src/resources/get-item-thumbnail-url.ts:19