#19 GIBS-347 Modified generate_legend to handle various color map types