mapfish.widgets.data.FeatureStore

Helper class to ease creating stores of features.  An instance of this class is pre-configured with a mapfish.widgets.data.FeatureReader.

Typical usage in a store

var store = new Ext.data.FeatureStore({
    fields: [
        {name: 'name', type: 'string'},
        {name: 'elevation', type: 'float'}
    ]
});
store.loadData(features);

Inherits from

  • {Ext.data.Store}
Summary
mapfish.widgets.data.FeatureStoreHelper class to ease creating stores of features.
Constructor
mapfish.widgets.data.FeatureStoreCreate 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.

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.

Parameters

config {Object} The config object.

Returns

{mapfish.widgets.data.FeatureStore} The feature store.

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.

FeatureReader is a specific Ext.data.DataReader.
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.
Close