How should I access the layers or select layers to remove or reorder.I am using TOC widget by nliu. But I want to add functionality to remove layers similar to arcmap(on right click remove or any other way).
I guess we will use " toc.on('toc-node-checked', function(evt){} " event to get the selected ayers(for removing or reordering). But not sure as unable to do it.