Skip to content

Documentation / @geoverse/core-ol / formatLength

Function: formatLength()

ts
function formatLength(line): string;

Defined in: packages/core-ol/src/utils/format.ts:7

线要素长度的人类可读格式化:>100m 显示 km,否则显示 m

Parameters

line

Geometry

Returns

string