id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc,state
1939,Strategy.Fixed should listen to refresh event,bartvde,crschmidt,"Discussion on openlayers-dev about this:

{{{
Hi Bart

Actually yes, I'd make sense to have the strategy listen to ""refresh"",
and on each ""refresh"" event effectively replace the old features by
new ones. Tell me if you implement this, I'll review it.

Thanks,

Eric

2009/2/13, Bart van den Eijnden (OSGIS) <bartvde@osgis.nl>:
> Hi Eric,
>
> yes I could but before doing that I want to know if it makes sense to
> the creators of the fixed strategy to include this in the Fixed
> strategy, so I can create a ticket and a patch. If not I'll revert to
> making my own Strategy.
>
> Best regards,
> Bart
>
> Eric Lemoine wrote:
>> On Wed, Feb 11, 2009 at 10:17 AM,  <bartvde@osgis.nl> wrote:
>>
>>> Hi list,
>>>
>>> I have a vector layer with a Fixed strategy. If the filter updates (the
>>> filter is sent to the WFS using Protocol.WFS), I want to refesh the
>>> layer,
>>> but the Fixed strategy does not listen to the refresh event of the layer.
>>> Is this intentional or a bug? Or am I missing something here?
>>>
>>> Also, the Fixed strategy always seems to merge the new features with the
>>> existing ones, but I want it to override the existing features with the
>>> new ones. How to go about this, make it an option of the Strategy?
>>>
>>
>> You could also implement your own custom strategy.
>>
>> --
>> Eric
}}}",feature,closed,minor,2.8 Release,Strategy.Fixed,2.7,fixed,,,Complete
