@mapgear/geoapps-core > UnitsHelper > FormatLength
UnitsHelper.FormatLength() method
Auto-format the length in metric units, and determine automatically whether to use meters or kilometers
Signature:static FormatLength(line: number): string;
Parameters
| Parameter | Type | Description |
|---|---|---|
| line | number | Length of the segment in meters |
string
Formatted string of the length