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.
Parameters
Section titled “Parameters”OlDrawProps
Returns
Section titled “Returns”Element
Example
Section titled “Example”<OlVectorSource> <OlDraw ref={drawRef} type="LineString" initialOptions={{ freehand: false }}> <OlDrawMesureTool /> </OlDraw></OlVectorSource>