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,
_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-- }
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.