formatShapeMeasure
A shape's measures as short text for the readout, for example
"1.2 ha · 480 m", "850 m", or "500 m radius · 78.5 ha" for a circle. Empty
for a point and for a shape with nothing to measure yet. Figures are written
for the language of messages, and "radius" is its word.
This is a function exported by @mapcairn/core, checked against version 0.2.0.
Signature
import { formatShapeMeasure } from "@mapcairn/core";
function formatShapeMeasure(shape: DrawShape, units: UnitSystem, messages: MessageCatalogue): string;
Parameters
shape(DrawShape)units(UnitSystem)messages(MessageCatalogue)
Returns
string