# GeoExt

### Navigation

- GeoExt »
- API Reference »
- `GeoExt.data` »
- `GeoExt.data.FeatureRecord`

# `GeoExt.data.FeatureRecord`

Extends
  - Ext.data.Record

class `GeoExt.data.``FeatureRecord`

  A record that represents an `OpenLayers.Feature.Vector`. This record will always have at least the following fields:

  - state `String`
  - fid `String`

## Public Methods

Public methods in addition to those listed for Ext.data.Record.

`FeatureRecord.``getFeature`()

  Returns: | `OpenLayers.Feature.Vector`

  Gets the feature for this record.

`FeatureRecord.``setLayer`()

  Parameter: | layer – `OpenLayers.Feature.Vector`

  Sets the feature for this record.

## Class Methods

Class methods in addition to static methods listed for Ext.data.Record.

classmethod `FeatureRecord.``create`()

  Parameter: | o – `Array` Field definition as in `Ext.data.Record.create`. Can be omitted if no additional fields are required.
  Returns: | `Function` A specialized `GeoExt.data.FeatureRecord` constructor.

  Creates a constructor for a `GeoExt.data.FeatureRecord`, optionally with additional fields.

### Navigation

- index
- modules |
- next |
- previous |
- GeoExt »
- API Reference »
- `GeoExt.data` »
- `GeoExt.data.FeatureRecord`