i would like to apply with jquery range slider a filter to an attribute of a geoserver layer. I prepared the code for the shape topp:state, attribute PERSONS. How is it possible filter the PERSONS attribute and visualize only the state selected in the range of the jquery range slider?
here the code for the slider, it needs to add the filter to geoserver:
$(function() { $( "#slider-range" ).slider({ range: true, min: 0, max: 1000000.0, values: [ 0, 1000000.0 ], slide: function( event, ui ) { $( "#amount" ).val( "PERSONS" + ui.values[ 0 ] + " - PERSONS" + ui.values[ 1 ] ); } }); $( "#amount" ).val( "PERSONS" + $( "#slider-range" ).slider( "values", 0 ) + " - PERSONS" + $( "#slider-range" ).slider( "values", 1 ) ); });
NEEDS add