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”.
Returns
Section titled “Returns”Element
Example
Section titled “Example”<OlDraw initialOptions={{ type: 'LineString' }}> <OlDrawMesureTool /></OlDraw>