Hey,

If I understand correctly CQL filters are only triggered on key up event, but there is no way to filter on page / view load. It would be good to have an option to pass a url parameter to an view, which immediately triggers the cql filters.
By doing it would be easier to have landing pages, e.g. one page for all pois from Switzerland, one page for all German pois, ..., without having to create a separate layer for each.

If there's another way to achieve this, I'll be glad to hear.

Comments

friedjoff’s picture

Category: feature » support
Status: Active » Fixed

Hi,

you mentioned an interesting use case for CQL filters. You can solve this using some simple JavaScript added by a custom module or theme. Modify the OpenLayers layer directly if the CQL query is static (have a look at line 30-38 in http://drupalcode.org/project/geoserver.git/blob/refs/heads/7.x-1.x:/plu... for an example). Otherwise you can fill the search form initially and trigger a key up event.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.