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
center Optional number[]
extent Optional number[][]
geoJson Optional any
geometries Optional Array<Partial<__esri.Geometry>>
graphic Optional any
name Optional string
orgSpatialReference Optional ISpatialReference
provenance Optional "none" | "custom" | "existing"
spatialReference Optional ISpatialReference

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