#19 GIBS-348 Added checks for existing legend or updated color map