Skip to content

Commit

Permalink
Merge pull request #4427 from camptocamp/filter-name-layers
Browse files Browse the repository at this point in the history
Fix filter on layer with different value in name and layers
  • Loading branch information
sbrunner authored Nov 29, 2018
2 parents 8dcf632 + 959da99 commit b5d6c42
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions contribs/gmf/src/datasource/Manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ const exports = class {
const filterParam = 'FILTER';
const filterParamValues = [];
let hasFilter = false;
for (const dataSourceName of layersList) {
for (const wmsLayerName of layersList) {
let filterParamValue = '()';

const dataSources = this.dataSources_.getArray();
Expand All @@ -782,7 +782,8 @@ const exports = class {
continue;
}
if (olBase.getUid(dsLayer) == olBase.getUid(layer) &&
dataSourceName === dataSource.name) {
layer.get('querySourceIds').indexOf(dataSource.id) >= 0 &&
dataSource.gmfLayer.layers.split(',').indexOf(wmsLayerName) >= 0) {

const id = olBase.getUid(dataSource.gmfLayer);
const item = this.treeCtrlCache_[id];
Expand Down

0 comments on commit b5d6c42

Please sign in to comment.