Update Parameters in Openlayers2

Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Update Parameters in Openlayers2

iris
This post has NOT been accepted by the mailing list yet.
Hello Everyone ,

I am working with openlayers2 and i am creating a layer from geoserver based on sql view.
What i want to change layer parameter from  javascript.

In ol3 i use :
pop.getSource().updateParams({
                                'viewparams': 'column:' + val1 +';'+ 'column1:' + val2 +';'+ 'column2:' + val4
                        });

Does Exist anyone updateParams() in openlayers 2?

Thanks
Loading...