[Users] Loading a Store From the Client

Eric Lemoine eric.lemoine at camptocamp.com
Fri Apr 30 14:37:17 CEST 2010


On Thursday, April 22, 2010, Mario <mario.schedler at web.de> wrote:
>
>
>
>
>
>
>
>
>
>
>
>
>
> Hello,
>
>
>
> I’m very new to
> GeoExt, so it’s maybe a simple question to you but for me it’s
> something strange. I have set up a Store as shown in the workshop provided by OpenGeo.
> The GML file point.xml will be loaded from the Web. What should be changed to
> access the data from the client?

You would provide features to the FeatureStore constructor:

new GeoExt.data.FeatureStore({
    layer: layer,
    fields: [...],
    data: features
});

where features is an array of OpenLayers.Feature.Vector objects.

If you have an existing FeatureStore you can load features into it using

store.loadData(features);


Hope it helps, and sorry for the delayed response.

-- 
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