OlSnap
OlSnap(
props):Element
Defined in: src/ol-snap.tsx:39
OpenLayers Snap interaction component for snapping drawn features to existing features. Enables vertex and edge snapping during draw/modify operations. Must be used within an OlVectorSource context.
Parameters
Section titled “Parameters”OlSnapProps
Returns
Section titled “Returns”Element
Example
Section titled “Example”<OlVectorSource> <OlSnap ref={snapRef} initialOptions={{ pixelTolerance: 10 }}> {children} </OlSnap></OlVectorSource>