Wired Legend buttons

Layers can be turned on and off with the legend buttons.