[OpenLayers-Users] applying CQL filter
Imran Rajjad
rajjad at gmail.com
Wed Jun 2 05:04:31 EDT 2010
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 <rajjad at gmail.com> 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 at f!t <grob_david at gmx.ch> 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
>> Users at openlayers.org
>> http://openlayers.org/mailman/listinfo/users
>>
>
>
>
> --
> I.R
>
--
I.R
More information about the Users
mailing list