FeatureDataRecord

Interface

Record of feature layer data source.

Inheritance: FeatureDataRecordDataRecord

Properties

dataSource

dataSource: FeatureLayerDataSource | SceneLayerDataSource

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

getData

getData: function

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}.

Type declaration
    (): object
    Returns 
    object
    • [key: string]: any

getFieldValue

getFieldValue: function

Return the value of a specific field.

Type declaration
    (jimuFieldNamestring): any
    Parameters
    • jimuFieldNamestring
    Returns 
    any

getFormattedData

getFormattedData: function

Return formatted record.

Type declaration
    (intlIntlShape): any
    Parameters
    • intlIntlShape
    Returns 
    any

getFormattedFieldValue

getFormattedFieldValue: function

Return the formatted value of a specific field.

Type declaration
    (jimuFieldNamestring, intlIntlShape): string
    Parameters
    • jimuFieldNamestring
    • intlIntlShape
    Returns 
    string

getGeometry

getGeometry: function

Return geometry of the record.

Type declaration
    (): IGeometry
    Returns 
    IGeometry

getId

getId: function

Return id of the record.

Type declaration
    (): string
    Returns 
    string

setId

setId: function

Set id of the record.

Type declaration
    (idstring): void
    Parameters
    • idstring
    Returns 
    void

toJson

toJson: function

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

Type declaration
    (): IFeature | Graphic
    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.