[Users] Can´t create grouping store

Eric Lemoine eric.lemoine at camptocamp.com
Sat Dec 11 22:59:37 CET 2010


On Wed, Dec 8, 2010 at 4:25 PM, Robert Buckley <robertdbuckley at yahoo.com> wrote:
>     Hi,
>
> Thanks.
> I thought that maybe someone had done this already. As I am only at a
> learning stage with Ext/GeoExt I wouldn´t have the time to invest.
>
> If anyone else has done it, I´d be grateful for any help.

You need to create your own grouping feature store type with:

var GroupingFeatureStore = Ext.extend(Ext.data.GroupingStore,
GeoExt.data.FeatureStoreMixin());

You can a store with something like that:

    var wea_store = new GroupingFeatureStore({
        fields: [{
            name: "Bez",
            type: "string"
        }, {
            name: "Standort",
            type: "string"
        }, {
            name: "Betreiber",
            type: "string"
        }],
        sortInfo: {field: 'Standort',direction: "ASC"},
        groupField: 'Standort',
        layer: layer_wea
    });


-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine at camptocamp.com
http://www.camptocamp.com


More information about the Users mailing list