geosolutions-it / MapStore

The code of the most recent version of mapstore is hosted as geosolutions-it/MapStore2
https://github.com/geosolutions-it/MapStore2
GNU General Public License v3.0
31 stars 43 forks source link

FilterMap breaks QueryPanel searches #727

Open Gnafu opened 9 years ago

Gnafu commented 9 years ago

The query panel does not work if the "Filter Map" tool has been used on the layer before searching.

kappu72 commented 9 years ago

Filter map add a cql_filter to vendor param here. If a user queries a second time the filtred layer here the plugin adds the first cql_filter to the new filter. If first filter was a spatial filter, that has been reprojected here ,the query will fail. More when user resets a query with filterlayer active here the plugin deletes any cql filter, without restoring default cql_filter if it exists. To fix, I suggest to save original cql_filter, if it exists, in private var of original layer and restore it's original state any time user queries the layer and when he resets the query panel.

Gnafu commented 9 years ago

Ok, you can proceed as you suggested.

Gnafu commented 9 years ago

The fix in the C016 branch needs to be ported on the master branch