A record that represents an OpenLayers.Layer. This record will always have at least the following fields:
Public methods in addition to those listed for Ext.data.Record.
| Parameter: | id – String (optional) A new Record id. |
|---|---|
| Returns: | class:GeoExt.data.LayerRecord A new layer record. |
Creates a clone of this LayerRecord.
| Returns: | OpenLayers.Layer |
|---|
Gets the layer for this record.
| Parameter: | layer – OpenLayers.Layer |
|---|
Sets the layer for this record.
Class methods in addition to static methods listed for Ext.data.Record.
| 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.