Sure not problem.....Issue: Not getting the +/- buttons in the NLiu's TOC Widget.I have a mxd with 3 layers. They are in a group.In the HTML Page:
<script type="text/javascript">
var dojoConfig = {
parseOnLoad: true,
packages: [
{ name: "esriTemplate", location: location.pathname.replace(/\/[^/]+$/, '') },
{ "name": "agsjs",
"location": 'http://gmaps-utility-gis.googlecode.com/svn/tags/agsjs/2.04/xbuild/agsjs'
}
]
};
</script>
<div id ="LeftPane" dojotype="dijit.layout.ContentPane" region="left" style=" width:250px">
<div id ="tocDiv3" >
</div>
</div>
In the JS file: var My_Layer = new esri.layers.ArcGISDynamicMapServiceLayer("http://xxxx:6080/arcgis/rest/services/MyService/MapServer",
{
id: 'My_Layer ',
opacity: 0.8
});
........
dojo.connect(map, 'onLayersAddResult', function (results) {
var toc = new agsjs.dijit.TOC({
map: map,
style: "inline",
layerInfos: [{
layer: My_Layer,
title: "My Company",
slider: true
}]
}, 'tocDiv3');
toc.startup();
});
Thanks for your help...