Assigns colors to the different drawing elements of a gridded map.