Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[Mapfish] Enable CQL Filter by JSON POST #921
This patch enable to send POST JSON data to mapfihapp with a cql_filter parameter.
Tested with :
When I tested it, I can't load WMS and WFS servers simultaneously, so I added a condition over the layer Type in updateStoreFromWxSLayer().
This allow the javascipt to not crash. There still a lot of bugs with WFS protocol, but not related to this patch...
added a commit
this pull request
Mar 9, 2015
It's appear that for WMS, the modifications don't persist with permalink (so wmc) because it use the filter attribute which is not "standard" of WMS protocol. This need an update and we can reuse the code of my PR for filter which create an altered SLD and load it (like the styler do). Use this method allow to persist the changes for WMS.
Can't test it for WFS because I can't load my layer, maybe du to the problems I metionned in my previous posts in this thread, don't remember. I'll look at that when I'll have some times. I think it could persist with WFS because FILTERS is a standard attribute of WFS protocol.
I'll try to work on those improvment next week.