Interface
Record of the ArcGIS queriable data source.
Properties
| Property | Type | Notes |
|---|---|---|
dataSource | ArcGISQueriableDataSource | A reference of the data source object that has this record. |
feature | IFeature | Graphic | The feature returned from query ArcGIS REST APIs or the ArcGIS Maps SDK for JavaScript Graphic object |
hasFullGeometry | boolean | Whether the feature has full precision geometry. Default is true. If a client-side query is enabled in the map widget, it may be false. |
dataSource
Interface PropertydataSource: ArcGISQueriableDataSourceA reference of the data source object that has this record.
feature
Interface Propertyfeature: IFeature | GraphicThe feature returned from query ArcGIS REST APIs or the ArcGIS Maps SDK for JavaScript Graphic object
Methods
| Method | Returns | Notes |
|---|---|---|
clone(deep?) | FeatureDataRecord | Create a clone of the data record object.
Use shallow clone by default. If |
getData() | {} | 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. |
getGeometry() | IGeometry | Return geometry of the record. |
getId() | string | Return ID of the record. |
setId(id) | void | Set ID of the record. |
toJson() | IFeature | Graphic | Return the data in JSON format, which is used to serialize data, and the key is "jimuFieldName". |
clone
Interface Methodclone(deep?: boolean): FeatureDataRecordCreate a clone of the data record object.
Use shallow clone by default. If deep is true , will use deep clone.
Parameters
| Parameter | Type |
|---|---|
deep | boolean |
Returns
FeatureDataRecordgetData
Interface MethodgetData(): {}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
{}getFieldValue
getFieldValue(jimuFieldName: string): anyReturn the value of a specific field.
Parameters
| Parameter | Type |
|---|---|
jimu | string |
Returns
anygetFormattedData
getFormattedData(intl: IntlShape): anyReturn formatted record.
Parameters
| Parameter | Type |
|---|---|
intl | IntlShape |
Returns
anygetFormattedFieldValue
Interface MethodgetFormattedFieldValue(jimuFieldName: string, intl: IntlShape): stringReturn the formatted value of a specific field.
Parameters
| Parameter | Type |
|---|---|
jimu | string |
intl | IntlShape |
Returns
string