Skip to main content

@mapgear/geoapps-core > UnitsHelper > FormatArea

UnitsHelper.FormatArea() method

Auto-format the area in metric units, automatically determining the use of km2, ha or m2

Signature:
static FormatArea(area: number): string;

Parameters

ParameterTypeDescription
areanumberArea in meters
Returns:

string

Formatted string of the area with unit (e.g. 2.5 ha)