The elevation value in meters (as returned by terrain queries).
The unit type: "metric" or "imperial" (default is 'metric').
Optional parameter to provide custom unit symbols. Uses defaultMeasureUnitSymbols if not provided.
An object containing the converted elevation value and the unit symbol string.
Convert elevation according to the unit type given.
Converts elevation from meters to the appropriate unit based on the
unit
parameter. This function is used to display elevation values in the correct unit based on the measureUnitType setting in MaplibreMeasureControl.metric
, returns value in meters with 'm' symbol.imperial
, converts meters to feet using the conversion factor 1 meter = 3.28084 feet.