diff --git a/viewer/js/viewer/Controller.js b/viewer/js/viewer/Controller.js index 41b377024..0073c6967 100644 --- a/viewer/js/viewer/Controller.js +++ b/viewer/js/viewer/Controller.js @@ -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 = {