[Users] FeatureStore filter
Matt Priour
mpriour at kestrelcomputer.com
Tue Nov 17 19:44:40 CET 2009
That is because the ExtJS store filter does not affect the underlying data
in the store, it just affects what records are available.
To filter the features on the map you would also need to apply a filter to
the vector layer as well.
ie:
MyFeatureStore.layer.filter(new
OpenLayer.Filter.Comparision({type:OpenLayers.Filter.Comparison.EQUAL_TO,property:"key",value:"value"}));
If you actually deleted a record from the store, then that feature should be
deleted from the layer.
Matt Priour
Kestrel Computer Consulting
--------------------------------------------------
From: "Christian Spanring" <christian at spanring.eu>
Sent: Tuesday, November 17, 2009 12:29 PM
To: <users at geoext.org>
Subject: [Users] FeatureStore filter
> 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!
>
> Christian
> _______________________________________________
> Users mailing list
> Users at geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/users
>
More information about the Users
mailing list