# GeoExt

### Navigation

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

# `GeoExt.data.LayerRecord`

Extends
  - Ext.data.Record

class `GeoExt.data.``LayerRecord`

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

  - title `String`

## Public Methods

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

`LayerRecord.``clone`()

  Parameter: | id – `String` (optional) A new Record id.
  Returns: | class:GeoExt.data.LayerRecord A new layer record.

  Creates a clone of this LayerRecord.

`LayerRecord.``getLayer`()

  Returns: | `OpenLayers.Layer`

  Gets the layer for this record.

`LayerRecord.``setLayer`()

  Parameter: | layer – `OpenLayers.Layer`

  Sets the layer for this record.

## Class Methods

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

classmethod `LayerRecord.``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.LayerRecord` constructor.

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

### Navigation

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