Skip to content

Commit

Permalink
fix(context): only layer with source type
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarbeau committed Jan 6, 2020
1 parent 7079625 commit 0ae5342
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -386,7 +386,9 @@ export class ContextService {
url: layer.dataSource.options.url
}
};
context.layers.push(opts);
if (opts.sourceOptions.type) {
context.layers.push(opts);
}
}

context.tools = this.tools.map(tool => {
Expand Down

0 comments on commit 0ae5342

Please sign in to comment.