Sorry to waste bandwidth but I think I'm barking up the wrong tree. This is a 
problem a ran into a while ago and deferred. Looking at it more closely, I was 
trying to use a Vector layer with the WFS protocol which is why I could not use 
mergeNewParams. If I use a WFS layer directly mergeNewParams is available, and 
now the issue seems to be that geoserver expects a feature id filter or 
something similar instead, so I'll ask there. If anyone knows how to do this 
though, please let me know :)

charles

----- Original Message -----
From: "Charles Galpin" <[email protected]>
To: [email protected]
Sent: Tuesday, November 30, 2010 9:24:54 AM GMT -05:00 US/Canada Eastern
Subject: [OpenLayers-Users] WFS layer equivalent of WMS mergeNewParams?

Please be gentle as this is probably just a basic misunderstanding on my part.

First I am using geoserver's new sql view capability which lets you run 
arbitrary sql to generate features, and it works fine from a WMS layer. I 
believe it will gladly return the results in any WFS format as well (assuming I 
can pass my parameters to it).

So I have a WMS layer which I am doing things like

wmsLayer.mergeNewParams(
{
  viewparams: 'x:1;y:3;z:3'
});

Which causes the layer to be refreshed based on the parameters.

I want to use a WFS layer instead, but can't figure out how to do this (or the 
equivalent) with the final goal of putting the features returned into a store. 
mergeNewParams is not valid on a WFS layer so I don't know how to pass them.

Any hints?

thanks,
charles
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to