Expand description
Distance / area measurement. Port of measure.ts + measure-live.ts.
Functions§
- format_
area - Human-readable area, e.g. “450 m²” or “2.3 km²”.
- format_
distance - Human-readable distance, e.g. “850 m” or “12.4 km”.
- measure_
area - Approximate area of a polygon in square meters, using an equirectangular projection around the polygon centroid.
- measure_
distance - Total distance of a polyline in meters.