Solved! Go to Solution.
_createChildrenNodes: function (a, b) { this.rootLayerTOC._currentIndent++; for (var d = [], c = 0, e = a.length; c < e; c++) { var g = a, f = { rootLayerTOC: this.rootLayerTOC, rootLayer: this.rootLayer, layer: this.layer, legend: this.legend }; f = g; f.data = g; g = new agsjs.dijit._TOCNode(f); g.placeAt(this.containerNode); d.push(g) } this._childTOCNodes = d; this.rootLayerTOC._currentIndent-- }
Dear all,
I would like to change the behaviour of the agsjs TOC control so that only one layer is visible at any given time. If user clicks a layer to make it visible then the control should automatically uncheck the previous visible layer if any is visible.
Can someone advise on how best to achieve this?
Kind regards,