[OpenLayers-Dev] Fixed Strategy question

Paul Spencer pspencer at dmsolutions.ca
Tue Jun 23 13:30:18 EDT 2009


thanks for the comment, I've filed this as http://trac.openlayers.org/ticket/2152 
  with a very simple patch

On 23-Jun-09, at 1:14 PM, Tim Schaub wrote:

> Hey-
>
> Paul Spencer wrote:
>> Is there any particular reason why the Fixed strategy does not use  
>> the
>> layer filter?  I'd like to be able to use it against a WFS and load
>> all the features but with a filter.
>>
>> I've tested this in my application using this quick workaround:
>>
>> var fixed = new OpenLayers.Strategy.Fixed({
>>     load: function(options) {
>>         OpenLayers.Strategy.Fixed.prototype.load.apply(this,
>> [{filter:this.layer.filter}]);
>>     }
>> });
>>
>> and it works as I would like.  I will add a patch to make Fixed work
>> like BBOX in applying a filter in the load method unless there is a
>> reason why it was left out in the first place.
>>
>
> No good reason.  Please patch.  I haven't looked in a while, but I've
> also been meaning to make sure that we get consistent behavior with
> layer.refresh (as far as possible).
>
> Tim
>
>> Cheers
>>
>> Paul
>>
>> __________________________________________
>>
>>    Paul Spencer
>>    Chief Technology Officer
>>    DM Solutions Group Inc
>>    http://research.dmsolutions.ca/
>>
>> _______________________________________________
>> Dev mailing list
>> Dev at openlayers.org
>> http://openlayers.org/mailman/listinfo/dev
>
>
> -- 
> Tim Schaub
> OpenGeo - http://opengeo.org
> Expert service straight from the developers.
> _______________________________________________
> Dev mailing list
> Dev at openlayers.org
> http://openlayers.org/mailman/listinfo/dev


__________________________________________

    Paul Spencer
    Chief Technology Officer
    DM Solutions Group Inc
    http://research.dmsolutions.ca/




More information about the Dev mailing list