ol-ext: DrawHole interaction

ol.interaction.DrawHole is an interaction to draw holes in a polygon.
You can limit the interaction to a set layer (layers option) or a set of feature (features options).

NB: The interaction prevents to add points outside the polygon but does not ensure the result polygon is consistent.
Non convexe polygons may result in drawing holes that cross the frontiers.

Options: