deriveLocationFromItem

Function

Derives proper IHubLocation given an ArcGIS Item. If no location (item.properties.location) is present, one will be constructed from the item's extent.

Derives proper IHubLocation given an ArcGIS Item. If no location (item.properties.location) is present, one will be constructed from the item's extent.

Parameters

Parameter Type Default Notes
item Required IItem

ArcGIS Item

Returns

IHubLocation

Property Type Notes
type IHubLocationType
extent Optional number[][]
geometries Optional Array<Partial<__esri.Geometry>>
name Optional string

The name of the location

spatialReference Optional ISpatialReference

Function defined in common/src/content/_internal/internalContentUtils.ts:129