jon: Hopefully, you can point out the fault in this piece of code below:
dojo.connect(map, 'onLayersAddResult', function (results) {
var sliderTOC = new agsjs.dijit.TOC({
map: map,
layerInfos: [{
layer: operational,
title: "LRS Rail",
noLayers: true,
slider: true
}, {
layer: operational2,
title: "LRS Annotation",
noLayers: true
}, {
layer: basemap,
title: "BaseMap",
noLayers: true,
slider: true
}], style: 'inline'
}, 'sliderDiv');
sliderTOC.startup();
});
Thanks.