addLegend function

Add a color legend to a map