Updated color map generation to clear existing data before creating maps