Adding layer names to legends