Skip to content

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.

Element | null

<OlDraw initialOptions={{ type: 'LineString' }}>
<OlDrawSnap />
</OlDraw>