I am allowing users to draw a polygon using the ol.interaction.Draw control. I want to make sure that the drawn polygon is not self intersecting.
I found a way how to do this in openlayers 2 in this topic: https://gis.stackexchange.com/questions/23755/determine-if-a-polygon-intersects-itself-in-openlayers
I was wondering IF there is a (better?) way to do this in openlayers 3 OR if somebody can guide me how to do this using openlayers 3 as I seem to be unable to port the openlayers 2 example.
Thank you in advance