From 464910903f9b75c11b2dfe0fa92e8a581ded6685 Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Thu, 10 Feb 2022 15:27:00 +0100 Subject: [PATCH] don't show bogus geom_alt in labels when geom_alt not available --- html/script.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/html/script.js b/html/script.js index 9cc47d1..ce952a0 100644 --- a/html/script.js +++ b/html/script.js @@ -7363,6 +7363,9 @@ function loadEGM() { } function adjust_geom_alt(alt, pos) { if (geomUseEGM && egmLoaded) { + if (alt == null) { + return alt; + } return egm96.ellipsoidToEgm96(pos[1], pos[0], alt * 0.3048) / 0.3048; } else { return alt;