Skip to content

Commit

Permalink
Merge pull request #1490 from fredj/fix-query-service_2.0
Browse files Browse the repository at this point in the history
Fix query service
  • Loading branch information
fredj committed Jun 29, 2016
2 parents 6cf2b3e + 2ba677d commit 317a90e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions contribs/gmf/src/services/querymanager.js
Expand Up @@ -140,8 +140,9 @@ gmf.QueryManager.prototype.createSources_ = function(node) {
}
}, this);
layers = childLayerNames.join(',');
} else if (node.type === 'WMS') {
validateLayerParams = true;
if (node.type === 'WMS' && childLayerNames.length == 1) {
validateLayerParams = true;
}
}

var source = {
Expand Down
2 changes: 2 additions & 0 deletions src/services/query.js
Expand Up @@ -370,6 +370,8 @@ ngeo.Query.prototype.issueWMSGetFeatureInfoRequests_ = function(
);
var layerLayers = layerSource.getParams()['LAYERS'].split(',');
var cfgLayer = item.source.wmsSource.getParams()['LAYERS'];
goog.asserts.assert(cfgLayer.indexOf(',') === -1,
'The LAYERS param contains more than one item');
if (layerLayers.indexOf(cfgLayer) === -1) {
continue;
}
Expand Down

0 comments on commit 317a90e

Please sign in to comment.