Hi,

for the sake of documentation

I made this function that will be called everytime one of the
checkboxes are checked. function takes the cql string as argument

function doFilter(filter)
{
var params = {cql_filter: null};
params["cql_filter"] = filter;
var netLayer=map.getLayersByName('Network Data');
netLayer[0].mergeNewParams(params);             
}

thanks

regards,
Imran


On Wed, Jun 2, 2010 at 12:39 PM, Imran Rajjad <[email protected]> wrote:
> yea that is the attribute upon which I apply filter. let me try that,
> there is no sign of this in the documentation
>
> regards,
> Imran
>
> On Wed, Jun 2, 2010 at 12:35 PM, t...@f!t <[email protected]> wrote:
>>
>> Hy,
>>
>> I think if you do it like this, it should work:
>>
>> var filterParams = {cql_filter: null};
>> filterParams["cql_filter"] = applyFilterBTS();
>> yourLayer.mergeNewParams(filterParams);
>>
>> I assume that OPERATOR is the Attribut of you Layer.
>>
>> cheers David
>> --
>> View this message in context: 
>> http://osgeo-org.1803224.n2.nabble.com/applying-CQL-filter-tp5129485p5129644.html
>> Sent from the OpenLayers Users mailing list archive at Nabble.com.
>> _______________________________________________
>> Users mailing list
>> [email protected]
>> http://openlayers.org/mailman/listinfo/users
>>
>
>
>
> --
> I.R
>



-- 
I.R
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to