[Users] FeatureStore filter
Eric Lemoine
eric.lemoine at camptocamp.com
Wed Nov 18 09:14:17 CET 2009
On Tue, Nov 17, 2009 at 7:29 PM, Christian Spanring
<christian at spanring.eu> wrote:
> Hi,
>
> I'm trying to apply a filter to a FeatureStore (GeoJSON format) and
> would like to synchronize it with the features drawn on the map.
> Using
>
> MyFeatureStore.filter("key","value");
>
> filters my records nicely in the GridPanel, but I'm not sure if that's
> the right way to go, since it doesn't seem to affect the features on
> the map (a
>
> myvectorlayer.refresh({force: true});
>
> didn't help either).
>
> Any hints in this direction are highly appreciated!
>
> Thanks!
I don't know that would help you but you can also control what goes in
the store and in the layer using the addRecordFilter function.
<http://www.geoext.org/lib/GeoExt/data/FeatureStore.html>
Cheers,
--
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