Skip to content

OlDrawMesureTool

OlDrawMesureTool(): Element

Defined in: src/ol-draw-mesure-tool.tsx:26

Component that displays real-time measurement tooltips during line drawing. Shows the length of the line being drawn, formatted in meters or kilometers. Must be used as a child of OlDraw configured with type=“LineString”.

Element

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