OlDrawSnap
OlDrawSnap():
Element|null
Defined in: src/ol-draw-snap.tsx:26
Component that enables snapping during drawing by temporarily displaying the feature being drawn. Creates a temporary vector layer with snap interaction for the feature under construction. Must be used as a child of OlDraw.
Returns
Section titled “Returns”Element | null
Example
Section titled “Example”<OlDraw initialOptions={{ type: 'LineString' }}> <OlDrawSnap /></OlDraw>