Skip to content

Commit

Permalink
Import DataSource 01 Restructuring - Fix build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
adube committed Oct 11, 2017
1 parent b904833 commit f7efdd1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions contribs/gmf/src/directives/layertree.js
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,7 @@ gmf.LayertreeController.prototype.updateWMSTimeLayerState = function(
}
const dataSource = layertreeCtrl.getDataSource();
if (dataSource) {
goog.asserts.assertInstanceof(dataSource, ngeo.datasource.OGC);
dataSource.timeRangeValue = time;
} else if (layertreeCtrl.children) {
for (let i = 0, ii = layertreeCtrl.children.length; i < ii; i++) {
Expand Down
5 changes: 3 additions & 2 deletions src/services/querent.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ ngeo.Querent = class {
* Handles the result of a single WMS GetFeatureInfo or WFS GetFeature
* request. Read features from the response and return them.
*
* @param {!Array.<!ngeo.datasource.DataSource>} dataSources List of
* @param {!Array.<!ngeo.datasource.OGC>} dataSources List of
* queryable data sources that were used to do the query.
* @param {number} limit The maximum number of features to get with the query.
* @param {boolean} wfs Whether the query was WFS or WMS.
Expand Down Expand Up @@ -618,7 +618,7 @@ ngeo.Querent = class {
}

/**
* @param {!Array.<ngeox.datasource.DataSource>} dataSources List of
* @param {!Array.<ngeox.datasource.OGC>} dataSources List of
* queryable data sources that supports WFS.
* @return {ngeo.Querent.CombinedDataSources} Combined lists of data sources.
* @private
Expand Down Expand Up @@ -692,6 +692,7 @@ ngeo.Querent = class {
isDataSourceQueryable_(ds, res) {
let queryable = ds.visible && ds.inRange && ds.queryable;
if (queryable && ds instanceof ngeo.datasource.OGC) {
goog.asserts.assertInstanceof(ds, ngeo.datasource.OGC);
queryable = ds.isAnyOGCLayerInRange(res, true);
}
return queryable;
Expand Down

0 comments on commit f7efdd1

Please sign in to comment.