addMapLegendBoxes function

Add a legend of coloured boxes to a map