changed map legend from svg to div