AnsweredAssumed Answered

TOC Issue

Question asked by deleted-user-yA_w_FC9FKe5 on Jun 4, 2014
Latest reply on Jun 4, 2014 by deleted-user-yA_w_FC9FKe5
I'm converting from Legacy to AMD.  The last thing I think I need to do is convert my TOC.  It is acting strange at the moment, sometimes it comes in and sometimes it does not.  However, in the legacy it always comes in without any issues.  Really weird.

Am I doing something wrong?  Below is just the TOC code and I put the whole code at jsbin.  Any idea what could be causing this?
http://jsbin.com/cezej/1/edit


dojo.connect(map, 'onLayersAddResult', function(results) {
               //alert("Test")

       var standardTOC = new agsjs.dijit.TOC({
                  map: map
      //noLegend: true
                }, 'standardDiv');
                standardTOC.startup();
   
    //alert("test2")
    var sliderTOC = new agsjs.dijit.TOC({
                  map: map,
                  layerInfos: [
           {
                    noLayers: true,
     showGroupCount: true,
     layer: flMCY_Stores_Regions,
                    title: "Macy's Stores District"},
    {
        noLayers: true,
                    layer: flMCY_Stores,
                    title: "Macy's Stores Region",

                  },
    
      {
        noLayers: true,
                    layer: dlDRegionDistrictPolygons,
                    title: "Boundary Files",
                    slider: true
                  }
    
      ], style:'inline'
                }, 'sliderDiv');
                sliderTOC.startup();   
              });

Outcomes