FeatureDataRecord
Interface
Record of feature layer data source.
Properties
Methods
Method | Returns | Notes |
---|---|---|
| Create a clone of the data record object.
Use shallow clone by default. If | |
| { [key: string]: any } | The data is a plain object. The format is {key: value}, and the key is "jimuFieldName". |
| any | Return the value of a specific field. |
| any | Return formatted record. |
| string | Return the formatted value of a specific field. |
| IGeometry | Return geometry of the record. |
| string | Return ID of the record. |
| 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
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
Parameter | Type |
---|---|
deep | boolean |
Returns
FeatureDataRecord
getData
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
getFieldValue(jimuFieldName: string): any
Return the value of a specific field.
Parameters
Parameter | Type |
---|---|
jimu | string |
Returns
any
getFormattedData
getFormattedData(intl: IntlShape): any
Return formatted record.
Parameters
Parameter | Type |
---|---|
intl | IntlShape |
Returns
any
dataSource: FeatureLayerDataSource | SceneLayerDataSource
A reference of the data source object that has this record.