[OpenLayers-Users] changing filters on the fly

Trond Michelsen trondmm-openlayers at crusaders.no
Wed Nov 19 09:34:19 EST 2008


On Wed, Nov 19, 2008 at 03:14:36PM +0100, Trond Michelsen wrote:
> I tried to simply keep a copy of the filter and layer, and do
> something like this:
> 
> function changefilter (layer, filter, newvalue) {
>   filter.value = newvalue;
>   layer.redraw();
> }
> 
> But nothing changed on the vectorlayer when I triggered the function.

Oh, wait... This works. I'm not sure why it didn't work on my first
try, but it works now.

-- 
Trond Michelsen



More information about the Users mailing list