I am using the ol.interaction.Draw method to draw a polygon on a map.
I don't want the user to be able to draw a polygon that is too big, or that intersects itself, so when either of those conditions are met (which I have already written code to determine), I want the lines of my polygon to change from the default blue color to red so that the user knows their polygon is not acceptable.
I know how to set the style originally for the Draw functionality but can't figure out getting the style to dynamically change on the fly, while the user is still drawing.