Skip to main content

@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

ParameterTypeDescription
linenumberLength of the segment in meters
Returns:

string

Formatted string of the length