Skip to content

Commit

Permalink
Fix filter on layer with different value in name and layers
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Nov 29, 2018
1 parent 3c23351 commit 959da99
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 959da99

Please sign in to comment.