improved displaying of map legend