[OpenLayers-Users] design advice

Roger Kunkel rakunkel at ucdavis.edu
Wed May 30 12:19:21 EDT 2007


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 <rakunkel at ucdavis.edu> 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
>> rakunkel at ucdavis.edu
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at openlayers.org
>> http://openlayers.org/mailman/listinfo/users
>>
>>

Roger Kunkel
CERES Program
Dept. of Land Air & Water Resources
UC Davis
rakunkel at ucdavis.edu





More information about the Users mailing list