FeatureReader is a specific Ext.data.DataReader. When records are added to the store using this reader, specific fields like feature, state and fid are available.
This widget is deprecated and will be removed in next mapfish version. Please use http://geoext.org- /lib- /GeoExt- /data- /FeatureReader.html instead.
var store = new Ext.data.Store({ reader: new mapfish.widgets.data.FeatureReader({}, [ {name: 'name', type: 'string'}, {name: 'elevation', type: 'float'} ]) });
mapfish. widgets. data. FeatureReader | FeatureReader is a specific Ext.data.DataReader. |
Constructor | |
mapfish. widgets. data. FeatureReader | Create a feature reader. |
Properties | |
totalRecords | {Integer} |
Functions | |
read | This method is only used by a DataProxy which has retrieved data. |
readRecords | Create a data block containing Ext.data.Records from an array of features. |
read: function( response )
This method is only used by a DataProxy which has retrieved data.
response | {OpenLayers.Protocol.Response} |
{Object} An object with two properties. The value of the property “records” is the array of records corresponding to the features. The value of the property “totalRecords” is the number of records in the array.
readRecords : function( features )
Create a data block containing Ext.data.Records from an array of features.
features | {Array{OpenLayers.Feature.Vector}} |
{Object} An object with two properties. The value of the property “records” is the array of records corresponding to the features. The value of the property “totalRecords” is the number of records in the array.
This method is only used by a DataProxy which has retrieved data.
read: function( response )
Create a data block containing Ext.data.Records from an array of features.
readRecords : function( features )