Change map marker color based on a field value

How to change the map marker color based on a column value for eg. company type