Skip to content

Documentation / @geoverse/core-libre / formatLength

Function: formatLength()

ts
function formatLength(line): string;

Defined in: packages/core-libre/src/utils/format.ts:33

线要素长度的人类可读格式化:>100m 显示 km,否则显示 m。 入参为 GeoJSON(WGS-84 经纬度)线要素/几何。

Parameters

line

LineInput

Returns

string