map.on("layers-add-result", function (evt) { toc = new TOC({ map: map, layerInfos: [{ layer: layerDynamic, title: "Legend", slider: true }] }, 'legendDiv'); toc.startup(); toc.on("load", function () { toc.findTOCNode(layerDynamic, 1).hide(); }); });
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.