[OpenLayers-Dev] Fixed Strategy question

Tim Schaub tschaub at opengeo.org
Tue Jun 23 13:14:22 EDT 2009


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.



More information about the Dev mailing list