removing legend for empty maps