[OpenLayers-Users] changing filters on the fly
Trond Michelsen
trondmm-openlayers at crusaders.no
Wed Nov 19 09:14:36 EST 2008
Hi.
Is it possible to reapply a filter on a vectorlayer after changing its
value? If so, how do I do it?
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.
I also need to be able to remove all filters from the layer, and
redraw it.
--
Trond Michelsen
More information about the Users
mailing list