From cdcccb296b9e2fbe47d50566a95aa70052166694 Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Fri, 22 Oct 2021 23:40:32 +0100 Subject: [PATCH] Update worldmap.js --- worldmap/worldmap.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/worldmap/worldmap.js b/worldmap/worldmap.js index ecd7187..39835f7 100644 --- a/worldmap/worldmap.js +++ b/worldmap/worldmap.js @@ -1784,13 +1784,13 @@ function setMarker(data) { var reft = new RegExp('feet|ft','i'); var refm = new RegExp('metres|m','i'); if ( reft.test(""+data.alt) ) { - data.alt = (parseFloat(data.alt)).toFixed(2) + " ft"; + data.alt = +(parseFloat(data.alt)).toFixed(2) + " ft"; } else if ( refm.test(""+data.alt) ) { - data.alt = (parseFloat(data.alt)).toFixed(2) + " m"; + data.alt = +(parseFloat(data.alt)).toFixed(2) + " m"; } else { - data.alt = (parseFloat(data.alt)).toFixed(2); + data.alt = +(parseFloat(data.alt)).toFixed(2); } }