GeoExt

Table Of Contents

Previous topic

GeoExt.data.AttributeReader

Next topic

GeoExt.data.FeatureReader

GeoExt.data.AttributeStore

Extends
class GeoExt.data.AttributeStore(config)
Small helper class to make creating stores for remotely-loaded attributes data easier. AttributeStore is pre-configured with a built-in Ext.data.HttpProxy and GeoExt.data.AttributeReader. The HttpProxy is configured to allow caching (disableCaching: false) and uses GET. If you require some other proxy/reader combination then you’ll have to configure this with your own proxy or create a basic Ext.data.Store and configure as needed.

Config Options

Configuration properties in addition to those listed for Ext.data.Store.

feature
OpenLayers.Feature.Vector A vector feature. If provided, and if the reader is a GeoExt.data.AttributeReader (the default), then records of this store will include a field named “value” referencing the corresponding attribute value in the feature. And if the “value” field of a record is updated the update will propagate to the corresponding feature attribute. Optional.
fields
Array or Function Either an array of field definition objects as passed to Ext.data.Record.create, or a record constructor created using Ext.data.Record.create. Defaults to ["name", "type", "restriction"].
format
OpenLayers.Format A parser for transforming the XHR response into an array of objects representing attributes. Defaults to an OpenLayers.Format.WFSDescribeFeatureType parser.