add class to hide legends on the map