The wicked awesome TOC/Legend Widget allows users to change visibility of sub layers, but it does not control the popup on sub layers. This means a sub layer can be turned off but that sub layer's popup will still appear on a map click.
Any advice on how to use this tool to also control sub layer popup visibility?