Hi people,

I want to know if there is an easy way to filter a layer using
OpenLayers.Filter.Comparison.EQUAL_TO having an array as the value.

In the documentation the input for the value says {Number} or {String}
comparison value for binary comparisons.

So for one value would be:

new OpenLayers.Rule({
    filter: new OpenLayers.Filter.Comparison({
        type: OpenLayers.Filter.Comparison.EQUAL_TO,
        property: "theID",
        value: "theValue"
    })
})


But for "theValue" part I'm having an array! 

Thanks for your time!! 

-----
"For God so loved the world, that he gave his only begotten Son, that
whosoever believeth in him should not perish, but have everlasting life.
For God sent not his Son into the world to condemn the world; but that the
world through him might be saved.
He that believeth on him is not condemned: but he that believeth not is
condemned already, because he hath not believed in the name of the only
begotten Son of God." John 3:16-18
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Comparison-filter-having-an-array-of-values-same-attr-tp5744906p5744906.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to