Feature Layer must be visible when using editing widget?

Discussion created by ipeebles on Aug 23, 2013
Latest reply on Aug 23, 2013 by zj_zou
I have an application where I have a couple of feature layers to edit.  They are loaded into the map.  I also have a table of contents where I have a dynamic map services that you can turn the layers on and off.  These layers are the same as what is displayed in the feature layer.  However, I do not want the feature layer on at all, so I can view the complete symbology for all graphics.

To work around my display problem, I added in the following code:

            map.addLayers([plantingsites, publictreeinventory]);

This block of code adds in the feature layer, but hides it.  I can still use the dynamic map service in the TOC to turn on and off layers.  When hiding the feature layer, the edit toolbar does not work.

Anyone have and ideas how I can hid the display of the feature layers, but still be able to use the editor widget?