Skip to content

Commit

Permalink
Merge pull request #432 from cmv/feature/exclude-feature-layers-from-…
Browse files Browse the repository at this point in the history
…editor-widget

exclude feature layers from Editor widget. Closes #221
  • Loading branch information
btfou committed Jul 17, 2015
2 parents e4869c8 + 0c03c0b commit bf497c6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion viewer/js/viewer/Controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,9 @@ define([
if (layer.editorLayerInfos) {
lang.mixin(options, layer.editorLayerInfos);
}
this.editorLayerInfos.push(options);
if (options.exclude !== true) {
this.editorLayerInfos.push(options);
}
}
if (layer.type === 'dynamic' || layer.type === 'feature') {
var idOptions = {
Expand Down

0 comments on commit bf497c6

Please sign in to comment.