I have come code: Is it possible to get coordinates of allready drawn points ? Or get intersection with other feature when drawing?
app.current.interaction = new ol.interaction.Draw({
features: app.current.featureOverlay.getFeatures(),
type: featureType.drawType
});
app.current.interaction.on('drawstart', function () {
app.current.interaction.lastEvent = 'drawstart';
});
Best Answer
Answer moved from the question:
Here is code, which gives you all intersecion with calculation of intersected segments (native openlayers works strange it counts just beetween start coord of LineString and end coord)
Here is code which counts intersection with 4 coords (i've found it on stackoverflow, can't find link):