Skip to content

OlDraw

OlDraw(props): Element

Defined in: src/ol-draw.tsx:42

OpenLayers Draw interaction component for drawing new vector features. Allows users to draw points, lines, polygons, and other geometries. Must be used within an OlVectorSource context.

OlDrawProps

Element

<OlVectorSource>
<OlDraw ref={drawRef} type="LineString" initialOptions={{ freehand: false }}>
<OlDrawMesureTool />
</OlDraw>
</OlVectorSource>