FeatureDataRecord

Interface

Record of feature layer data source.

Inheritance: FeatureDataRecordDataRecord

Properties

PropertyTypeNotes

A reference of the data source object that has this record.

IFeature | Graphic

The feature returned from query ArcGIS REST APIs or the ArcGIS Maps SDK for JavaScript Graphic object

dataSource

Interface Property
dataSource: FeatureLayerDataSource | SceneLayerDataSource

A reference of the data source object that has this record.

feature

Interface Property
feature: IFeature | Graphic

The feature returned from query ArcGIS REST APIs or the ArcGIS Maps SDK for JavaScript Graphic object

Methods

Hide inherited methods
MethodReturnsNotes
clone(deep?)

Create a clone of the data record object. Use shallow clone by default. If deep is true, will use deep clone.

{ [key: string]: any }

The data is a plain object. The format is {key: value}, and the key is "jimuFieldName".

getFieldValue(jimuFieldName)
 inherited 
any

Return the value of a specific field.

getFormattedData(intl)
 inherited 
any

Return formatted record.

getFormattedFieldValue(jimuFieldName, intl)
string

Return the formatted value of a specific field.

IGeometry

Return geometry of the record.

string

Return ID of the record.

setId(id)
void

Set ID of the record.

IFeature | Graphic

Return the data in JSON format, which is used to serialize data, and the key is "jimuFieldName".

clone

Interface Method
clone(deep?boolean): FeatureDataRecord

Create a clone of the data record object. Use shallow clone by default. If deep is true, will use deep clone.

Parameters
ParameterType
deep
boolean
Returns 
FeatureDataRecord

getData

Interface Method
getData(): { [key: string]: any }

The data is a plain object. The format is {key: value}, and the key is "jimuFieldName".

The data before mapping use this schema: {fieldName: value}. We need to return this schema: {jimuFieldName: value}.

Returns 
{ [key: string]: any }
  • [key: string]: any

getFieldValue

inherited
Interface Method
getFieldValue(jimuFieldNamestring): any

Return the value of a specific field.

Parameters
ParameterType
jimuFieldName
string
Returns 
any

getFormattedData

inherited
Interface Method
getFormattedData(intlIntlShape): any

Return formatted record.

Parameters
ParameterType
intl
IntlShape
Returns 
any

getFormattedFieldValue

Interface Method
getFormattedFieldValue(jimuFieldNamestring, intlIntlShape): string

Return the formatted value of a specific field.

Parameters
ParameterType
jimuFieldName
string
intl
IntlShape
Returns 
string

getGeometry

Interface Method
getGeometry(): IGeometry

Return geometry of the record.

Returns 
IGeometry

getId

Interface Method
getId(): string

Return ID of the record.

Returns 
string

setId

Interface Method
setId(idstring): void

Set ID of the record.

Parameters
ParameterType
id
string
Returns 
void

toJson

Interface Method
toJson(): IFeature | Graphic

Return the data in JSON format, which is used to serialize data, and the key is "jimuFieldName".

Returns 
IFeature | Graphic

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.