Skip to content

Commit

Permalink
Merge pull request #938 from fredj/query_wmts
Browse files Browse the repository at this point in the history
Don't create query sources for WMTS layers without wmsUrl
  • Loading branch information
fredj committed Mar 24, 2016
2 parents 6d52b8b + 3ba40fa commit 20e0be0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions contribs/gmf/src/services/querymanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ gmf.QueryManager.prototype.createSources_ = function(node) {
var url = meta['wmsUrl'] || node.url || this.gmfWmsUrl_;
var validateLayerParams = false;

// don't create sources for WMTS layers without wmsUrl, they are not queryable.
if (node.type === 'WMTS' && !meta['wmsUrl']) {
return;
}

if (children) {
for (var i = 0, len = children.length; i < len; i++) {
this.createSources_(children[i]);
Expand Down

0 comments on commit 20e0be0

Please sign in to comment.