ol.interaction.SnapGuide handles snapping of vector features using guides lines while modifying or drawing them.
The snap interaction modifies map browser event coordinate and pixel properties to force the snap to occur
to any interaction that them.
-
You can add guidelines to snap to.
-
You can set an ol.interaction.Draw to control orthogonal drawing (similar to OLE snapping with OL2).
-
You can also set an ol.interaction.Modify to control orthogonal drawing while modifying.