don't show bogus geom_alt in labels when geom_alt not available

This commit is contained in:
Matthias Wirth
2022-02-10 15:27:00 +01:00
parent a81774a8b8
commit 464910903f

View File

@@ -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;