From 60ca9e12a2cefe4afa401278beae72ab236ffa88 Mon Sep 17 00:00:00 2001 From: Marat Fayzullin Date: Wed, 30 Nov 2022 15:03:53 -0500 Subject: [PATCH] Rounding altitude to integer number. --- htdocs/map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/map.js b/htdocs/map.js index 8dac88a..e63a7c9 100644 --- a/htdocs/map.js +++ b/htdocs/map.js @@ -479,7 +479,7 @@ $(function(){ detailsString += '

' + makeListTitle('Details'); if (marker.altitude) { - detailsString += makeListItem('Altitude', marker.altitude + ' m'); + detailsString += makeListItem('Altitude', marker.altitude.toFixed(0) + ' m'); } if (marker.device) {