Is it possible to rebind or refresh agsjs.dijit.TOC and esri.dijit.Legend if i add an additional Service dynamically after loading the complete map page along with TOC and Legend.....
You can detect when a layer is added to the map by listening for map.onLayerAdd(). You can then refresh the legend using legend.refresh(). The TOC probably has an equivalent refresh method.Steve
for TOC i cant find any refresh method....
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.