From 0c03c0b77e26083c2ba3ac7884946e1840cefeb6 Mon Sep 17 00:00:00 2001 From: Tim McGee Date: Wed, 15 Jul 2015 16:28:04 -0700 Subject: [PATCH] exclude feature layers from Editor widget. Closes #221 --- viewer/js/viewer/Controller.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 = {