exclude legends from layers which are currently not visible (out of scale)
Merge branch 'legends-28' into encoding-67-98