AnsweredAssumed Answered

JS - Legend display Only for last added layer

Question asked by shaningesri on Nov 7, 2014
Latest reply on Nov 10, 2014 by kenbuja

In a TOC panel, I added several Operational Layers by the piece of code below:

            var sliderTOC = new agsjs.dijit.TOC({               

                map: map,

                layerInfos: [{

                     layer: operational1,

                     title: "by Site",

                    noLayers: true

                 }, {

                     layer: operational2,

                     title: "by Zip",

                     noLayers: true

                 }, {

                     layer: operational3,

                     title: "Distribution",

                     noLayers: true

                 }], style: 'inline'

            }, 'sliderDiv');


I expected legend displays for all of the layers.  However, on the displayed page, legend displays only for the last added layer.  How can this problem be debugged?  Thanks.