Typical usage in a store:
var store = new Ext.data.Store({
reader: new GeoExt.data.FeatureReader({}, [
{name: 'name', type: 'string'},
{name: 'elevation', type: 'float'}
])
});
Public methods in addition to those listed for Ext.data.DataReader.
Parameter: | features – Array(OpenLayers.Feature.Vector) List of features for creating records |
---|---|
Returns: | Object An object with records and totalRecords properties. |
Create a data block containing GeoExt.data.FeatureRecord objects from an array of features.