replace expandable legend in layer tree with info button that opens legend and metadata window