Thanks,

I have seen the mergeNewParams() method mentioned in this list  
before. I'm a little unclear on how to apply to to a WFS layer with a  
Filter param.
Anyone have an example?



On May 30, 2007, at 5:41 AM, Pierre GIRAUD wrote:

> Did you try having something similar to WMS reload hacks. I mean using
> mergeNewParams() with a randomized parameter.
> http://openlayers.org/pipermail/users/2007-April/001455.html
>
> You may also have a look at the refresh method available for vector  
> layers.
>
> Regards.
>
> Pierre
>
> On 5/30/07, Roger Kunkel <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>> I'm in need of some design advice.
>>
>> My application uses a vector layer created via a WFS call with a  
>> Filter to
>> query and display intersecting geometries.
>> This generally works well, but I need to alter the Filter and  
>> reload the
>> result frequently. So far, I've been destroying the
>> vector layer and creating a new one each time. Is this an inefficient
>> approach? and what sequence of methods should I use?
>> I noticed there is a removeFeatures() and a destroyFeatures()  
>> function in
>> vector.js.
>>
>> Should I just use destroy() and recreate the layer or use  
>> removeFeatures()
>> and somehow reload the layer.
>> I also use the selectFeature control - should it also be destroyed  
>> and
>> recreated.
>>
>> Thoughts and sample code appreciated.
>>
>>
>>
>>
>> Roger Kunkel
>> CERES Program
>> Dept. of Land Air & Water Resources
>> UC Davis
>> [EMAIL PROTECTED]
>>
>>
>> _______________________________________________
>> Users mailing list
>> [email protected]
>> http://openlayers.org/mailman/listinfo/users
>>
>>

Roger Kunkel
CERES Program
Dept. of Land Air & Water Resources
UC Davis
[EMAIL PROTECTED]


_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to