Check DisplayInLegend on Layers and Groups

Show only Layers and Groups that are DisplayInLegend = true