Helper class to ease creating stores of features. An instance of this class is pre-configured with a mapfish.widgets.data.FeatureReader.
var store = new Ext.data.FeatureStore({ fields: [ {name: 'name', type: 'string'}, {name: 'elevation', type: 'float'} ] }); store.loadData(features);
mapfish. widgets. data. FeatureStore | Helper class to ease creating stores of features. |
Constructor | |
mapfish. widgets. data. FeatureStore | Create a feature store, the options passed in the config object are similar to those passed to an Ext.data.Store constructor; in addition the config object must include a “fields” property referencing an Array of field definition objects as passed to Ext.data.Record.create, or a Record constructor created using Ext.data.Record.create. |
Properties | |
fields | {Object} An Array of field definition objects as passed to Ext.data.Record.create, or a Record constructor created using Ext.data.Record.create. |
Create a feature store, the options passed in the config object are similar to those passed to an Ext.data.Store constructor; in addition the config object must include a “fields” property referencing an Array of field definition objects as passed to Ext.data.Record.create, or a Record constructor created using Ext.data.Record.create.
config {Object} The config object.
{mapfish.widgets.data.FeatureStore} The feature store.