Skip to content

Commit

Permalink
Merge pull request #4418 from camptocamp/error
Browse files Browse the repository at this point in the history
Fix JS error after having loaded an external WMS layer
  • Loading branch information
sbrunner committed Nov 28, 2018
2 parents bc3aad4 + 2e230f0 commit 3c23351
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions contribs/gmf/src/datasource/Manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -731,6 +731,9 @@ const exports = class {
*/
getDataSourceLayer_(dataSource) {
dataSource = /** @type {!gmf.DataSource} */ (dataSource);
if (dataSource.gmfLayer == undefined) {
return;
}
const id = olBase.getUid(dataSource.gmfLayer);
if (id == undefined) {
return;
Expand Down

0 comments on commit 3c23351

Please sign in to comment.