[Users] FeatureStore with Filter
Daniel Kastl
orkney at gmx.de
Mon Jun 1 03:29:00 CEST 2009
>
> Using GeoExt.form.FormPanel?
>
>
>>
>> now is filtering by current map extent to get only the visible features
>> in the grid panel.
>
> So if I understand correctly you'd like to combine the filter from the
> FormPanel with a BBOX filter corresponding to the current map extent.
> Is that correct?
Yes, this was the idea.
>
> Pierre is correct when saying that MapFish provides proper building
> blocks for this. Please follow up on the MapFish mailing list if you
> want to go that path (MapFish trunk now includes GeoExt).
>
> Now if you want GeoExt only you'll need more code on your side, but it
> shouldn't be terribly complex. As I see it: use the
> GeoExt.form.toFilter func to get the filter from the form field
> values, combine this filter with a BBOX filter whose value is the
> current map extent, and pass the resulting filter to the
> protocol.read(). It's more code on your side because you can't just
> rely on formPanel.search().
Thank you. I will look into the MapFish source code then and try if I
can make this work.
>
> Hope this helps,
>
More information about the Users
mailing list