openlayers / openlayers

OpenLayers
https://openlayers.org
BSD 2-Clause "Simplified" License
11.08k stars 3k forks source link

Snap Interaction can snap to segments intersection #13441

Open langpavel opened 2 years ago

langpavel commented 2 years ago

I'm trying to snap to intersection point but also to edge too. Adding computed intersection point to Snap Interaction isn't working when edge snapping is enabled too (See #13440).

When I analyze the problem, I decided that computing intersection point in interaction itself can be the most efficient way.

ahocevar commented 2 years ago

I could think of adding an option for snapping to intersections. Optional because it would significantly increase the calculation time when the modification candidate geometries change. If you'd like to work on that, please feel free to create a pull request.