legend: added function to check if layer is visible
Merge branch 'develop' of github.com:mapbender/mapbender into develop