GeoExt

Table Of Contents

Previous topic

GeoExt.data.LayerReader

Next topic

GeoExt.data.LayerStore

GeoExt.data.LayerRecord

Extends
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:idString (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:layerOpenLayers.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:oArray 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.